P. 1
The Objective-C Programming Language - Book

The Objective-C Programming Language - Book

3.0

|Views: 689|Likes:
Published by Nikunj Soni

More info:

Published by: Nikunj Soni on Dec 01, 2009
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF or read online from Scribd
See more
See less

06/26/2013

Using associative references, you can add storage to an object without modifying the class declaration. This
may be useful if you do not have access to the source code for the class, or if for binary-compatibility reasons
you cannot alter the layout of the object.

Associations are based on a key, so for any object you can add as many associations as you want, each using
adifferentkey.Anassociationcanalsoensurethattheassociatedobjectremainsvalidforatleastthelifetime
of the source object (without the possibility of introducing uncollectible cycles in a garbage-collected
environment).

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->