在Cocoa下有没有更低级别的API,比如MFC下的Win32 API?如果有,它在Mac或iOS应用程序开发中被广泛使用吗?
发布于 2011-11-12 11:36:12
CoreFoundation是较低级别的C API:
http://developer.apple.com/corefoundation/
基础类是类的更高的objective-c基础集:
http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/Foundation/ObjC_classic/_index.html
苹果提供了这些类型之间的“免费”桥接:
http://developer.apple.com/library/ios/#documentation/CoreFoundation/Conceptual/CFDesignConcepts/Articles/tollFreeBridgedTypes.html
对于OSX,AppKit (Cocoa)是使用基础类的更高级别的UI框架:
http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/ApplicationKit/ObjC_classic/_index.html
对于设备(iOS),在基础类上有UIKit (Cocoa Touch):
http://developer.apple.com/library/ios/#documentation/uikit/reference/UIKit_Framework/_index.html
所有这些在OSX和iOS开发中都得到了广泛的应用。
https://stackoverflow.com/questions/8102329
复制相似问题