< Previous PageNext Page > Hide TOC

Runtime Versions and Platforms

There are different versions of the Objective-C runtime on different platforms.

In this section:

Legacy and Modern Versions
Platforms


Legacy and Modern Versions

There are two versions of the Objective-C runtime—“modern” and “legacy”. The modern version was introduced with Objective-C 2.0 and includes a number of new features. The programming interface for the legacy version of the runtime is described in Objective-C 1 Runtime Reference; the programming interface for the modern version of the runtime is described in Objective-C 2.0 Runtime Reference.

The most notable new feature is that instance variables in the modern runtime are “non-fragile”:

In addition, the modern runtime supports instance variable synthesis for declared properties (see Declared Properties in The Objective-C 2.0 Programming Language).

Platforms

iPhone applications and 64-bit programs on Mac OS X v10.5 and later use the modern version of the runtime.

Other programs (32-bit programs on Mac OS X desktop) use the legacy version of the runtime.



< Previous PageNext Page > Hide TOC


© 2009 Apple Inc. All Rights Reserved. (Last updated: 2009-02-04)


Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.