P. 1
The Objective-C Programming Language - Book

The Objective-C Programming Language - Book


|Views: 689|Likes:
Published by Nikunj Soni

More info:

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


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


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
of the source object (without the possibility of introducing uncollectible cycles in a garbage-collected

You're Reading a Free Preview

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