Object class name/setObjectClass in NSController
Object class name/setObjectClass in NSController
- Subject: Object class name/setObjectClass in NSController
- From: Gwynne <email@hidden>
- Date: Fri, 2 Jul 2004 13:27:13 -0400
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.