Cocoa Touch

iOS devices like the iPhone, the iPod touch, and the iPad contain a computer that runs a scaled-down version of Mac OS X. Some features found in iOS devices, such as accelerometers and proximity sensors, are unique to these devices and are not found in other Mac OS X computers, such as MacBook Pros or iMacs.

Note

Actually, Mac notebooks contain an accelerometer so that the hard drive can be parked if the computer gets dropped; however, you can’t access this accelerometer directly from your programs.

Whereas the Cocoa frameworks are designed for application development for Mac OS X desktop and notebook computers, the Cocoa Touch frameworks are for applications targeted for iOS devices.

Both Cocoa and Cocoa Touch have the Foundation ...

Get Programming in Objective-C, Sixth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.