What Is Cocoa?
Cocoa is an application environment for both the OS X operating system and iOS, the operating system used on Multi-Touch devices such as iPhone, iPad, and iPod touch. It consists of a suite of object-oriented software libraries, a runtime system, and an integrated development environment.
The Cocoa Environment
Cocoa is a set of object-oriented frameworks that provides a runtime environment for applications running in OS X and iOS. Cocoa is the preeminent application environment for OS X and the only application environment for iOS. (Carbon is an alternative environment in OS X, but it is a compatibility framework with procedural programmatic interfaces intended to support existing OS X code bases.) Most of the applications you see in OS X and iOS, including Mail and Safari, are Cocoa applications. An integrated development environment called Xcode supports application development for both platforms. The combination of this development environment and Cocoa makes it easy to create a well-factored, full-featured application.
|Abbreviation||Meaning and comments|
|app||Application. For example, NSApp the global application object. However, “application” is spelled out in delegate methods, notifications, and so on.|
|init||Initialize (for methods that initialize new objects).|
|int||Integer (in the context of a C int—for an NSInteger value, use integer).|
|nib||Interface Builder archive.|
|pboard||Pasteboard (but only in constants).|
|Rep||Representation (used in class name such as NSBitmapImageRep).|