关于基金会和 NS 图书馆的问题
我是一名 Objective-C 学习者,并且没有 Mac,那么我需要使用带有 GNUStep 的 Linux,但是如果我在其上开发自己的程序,最终用户将需要有 GNUStep(如 .Net) )安装然后我开始思考如何解决这个问题,然后我有一个想法:“从头开始创建这个!”,但现在要做到这一点我需要知道: NS 和 Foundation 标头中最重要的东西是什么?谢谢。
I'm a Objective-C learner and I don't have a Mac, then I need to use my Linux with GNUStep, but if I develop my own program on it, the end-user will need to have GNUStep(like .Net) installed and then I started thinking how can I solve this, then I had an idea: "Create this from scratch!", but now to do this I need to know: What are the most important things in NS and Foundation headers? Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
notnoop 提出了一个很好的观点:Foundation 是一个极其复杂且经过充分测试的框架;大约需要 10 或 15 年的时间(必须有人告诉我确切的开始日期)。
也许 Foundation 框架中最重要的部分是 NSObject。所有对象都继承自的(某种程度上)单一根类是 *Step 的最大优势之一。
实现您自己的 Obj-C 根类应该是一个有趣的练习。
编辑:如果我没有提到其他一些重要功能,我将是失职的:实现抽象集合类(
NSArray
、NSDictionary
、NSSet
)、字符串 (NSString
)、实用程序类 (NSProcessInfo
、NSUserDefaults
)、序列化工具 (NSCoder
)、 ...至少可以说,这是一个全面的框架。
notnoop makes an excellent point: Foundation is an extremely complex and well-tested framework; somewhere along the lines of 10 or 15 years in the making (someone will have to hit me with the precise date of inception).
Perhaps the single most important part of the Foundation framework is
NSObject
. The (sort of) single root class that all objects inherit from is one of the greatest strengths of *Step.Implementing your own Obj-C root class should be an interesting exercise.
EDIT: I would be remiss if I did not mention a few of the other important features: Implementation-abstracted collection classes (
NSArray
,NSDictionary
,NSSet
), strings (NSString
), utility classes (NSProcessInfo
,NSUserDefaults
), serialization tools (NSCoder
), ...It's a comprehensive framework, to say the least.
开始使用Objective-C 2.0 编程
由 Stephen G. Kochan 撰写,
这就是我开始的方式......
get started with Programming in Objective-C 2.0
written by Stephen G. Kochan
thats how i started it...