Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Object class name/setObjectClass in NSController
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Object class name/setObjectClass in NSController



My question is simple: What do these mean? In Interface Builder, both NSObjectController and NSArrayController provide a field for "Object class name", which is mirrored in their interfaces by the setObjectClass: method. The documentation is rather unhelpful, having only this to say:

"By default the content object of an NSObjectController instance is NSMutableDictionary. This allows a single NSObjectController instance to be used to manage many different properties referenced by key value paths. The default content object class can be changed by calling setObjectClass:, which subclassers must override."

But that doesn't really tell me much. What would happen if I changed it to NSMutableArray or NSMutableSet, or a class of my own? What exactly does this class name represent for NSObjectController? I looked in the list archives, but I couldn't find anything relevant.

-- Gwynne, key to the Code that runs us all
Formerly known as Sailor Quasar.
Email: email@hidden
Web: http://musicimage.plasticchicken.com/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.