Re: Object class name/setObjectClass in NSController
Re: Object class name/setObjectClass in NSController
- Subject: Re: Object class name/setObjectClass in NSController
- From: Chris Hanson <email@hidden>
- Date: Fri, 2 Jul 2004 14:01:21 -0700
On Jul 2, 2004, at 10:27 AM, Gwynne wrote:
My question is simple: What do these mean?
See the documentation for -[NSObjectController newObject]. Basically,
it will instantiate (using the standard +alloc/-init pair) an object of
the class that you specify when the controller is configured to
automatically prepare content.
Let's say you have a table view handled by an NSArrayController that is
displaying Book objects. If you actually want what's displayed to be
instances of Book rather than NSMutableDictionary, and you want that
NSArrayController to manage creating new objects for you, you would set
the NSArrayController to automatically prepare content and set the
object class name for the NSArrayController to be Book.
-- Chris
--
Chris Hanson <email@hidden>
http://www.livejournal.com/users/chanson/
_______________________________________________
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.