- Inherits From:
- Conforms To:
- Declared In:
Object references provide a reference an object that in itself is an object. The references retain their objects. Reference objects can be useful when you want to use heavy-weight objects as keys in Dictionaries (and the object's equality is defined by pointer equality, e.g. Fonts) or you need to pass references on the pasteboard. (Adding and retrieving an object from the pasteboard normally effectively copies it.) Note that there is a convenience method on NSPasteboard that does something similar but does not retain the referenced objects.
Creating new references
Retrieving the references objects
- + referenceToObject:
- - referencedObject
Creates and returns a new reference to anObject. Note that anObject is retained by the reference.
Returns the object.
Version 2.0 Copyright ©2002. All Rights Reserved.