|
Answer» Cocoa and Cocoa Touch are two of Apple's widely used application frameworks used for building applications. However, they differ in the following ways: | Cocoa | Cocoa Touch |
|---|
| It is an application framework for building applications that run on Mac OS X. | It is the application framework for building applications that run on DEVICES like iPhones and iPad. | | Frameworks such as Foundation and AppKit are INCORPORATED into Cocoa. | Cocoa Touch is a COMBINATION of Frameworks such as Foundation and UIKit are incorporated into Cocoa Touch. | | Cocoa CLASSES use the NS (used for all classes and constants in the cocoa framework) prefix (like NSTextField, NSWindow). | Cocoa Touch classes, on the other hand, use the UI (used for all classes and constants in the cocoa touch framework) prefix (like UITextField and UIWindow). |
|