< Previous PageNext Page > Hide TOC

Represented Objects

Represented objects are objects an NSCell stands for. (They’re not to be confused with an NSCell’s object value, which is the value of the cell.) By setting a represented object for an NSCell (using setRepresentedObject:) you make an association between the NSCell and that object. For instance, you could have a pop-up list, each cell of which lists a color as its title; when the user selects a cell, the represented NSColor object is displayed in a color well. This feature is solely for the developer’s convenience. The cell itself does not use the represented object, except to archive and restore it.



< Previous PageNext Page > Hide TOC


© 2008 Apple Inc. All Rights Reserved. (Last updated: 2008-10-15)


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.