Skip to Main Content
Learning Objective-C 2.0: A Hands-On Guide to Objective-C for Mac and iOS Developers
book

Learning Objective-C 2.0: A Hands-On Guide to Objective-C for Mac and iOS Developers

by Robert Clair
July 2010
Beginner content levelBeginner
416 pages
9h 51m
English
Addison-Wesley Professional
Content preview from Learning Objective-C 2.0: A Hands-On Guide to Objective-C for Mac and iOS Developers

D. Runtimes, Old and New

Apple provides two different versions of the Objective-C runtime: “legacy” and “modern.” The legacy version is used for 32-bit OS X programs and the modern version is used for iPhone applications and 64-bit applications running on OS X 10.5 or later. As of this writing (January 2010), the name “legacy” is slightly premature: The majority of existing desktop Mac applications are 32-bit programs.

From a programmer’s point of view, the primary difference between the two runtimes is how they store an object’s instance variables. The legacy runtime stores instance variables in what amounts to a C structure, and references instance variables by their offsets into the structure. The modern runtime uses a different scheme and ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learning Objective-C 2.0: A Hands-on Guide to Objective-C for Mac and iOS Developers, Second Edition

Learning Objective-C 2.0: A Hands-on Guide to Objective-C for Mac and iOS Developers, Second Edition

Robert Clair
Beginning iPhone Development with Swift 2: Exploring the iOS SDK

Beginning iPhone Development with Swift 2: Exploring the iOS SDK

David Mark, Kim Topley, Jack Nutting, Frederik Olsson, Jeff LaMarche
More iPhone Development with Objective-C

More iPhone Development with Objective-C

David Mark, Jayant Varma, Jeff LaMarche, Alex Horovitz, Kevin Kim
Objective-C for Absolute Beginners: iPhone, iPad and Mac Programming Made Easy

Objective-C for Absolute Beginners: iPhone, iPad and Mac Programming Made Easy

Stefan Kaczmarek, Brad Lees, Gary Bennett, Mitch Fisher

Publisher Resources

ISBN: 9780321712110Purchase book