Re: What is Object Class Name used for in bindings?
Re: What is Object Class Name used for in bindings?
- Subject: Re: What is Object Class Name used for in bindings?
- From: Bob Ueland <email@hidden>
- Date: Sun, 7 Oct 2007 01:26:53 -0700 (PDT)
Keary Suska wrote:
Look in the API docs--which class defines and implements -objectClass? What is it for?
Thanks for the reply Keary. I've looked up the -objectClass method in API. It's NSObjectController class that implements it. What it is used for is harder to tell, but it seems (new assumptions) that we have two cases:
Case one: NSObjectController does not have its content outlet pointing at any object. In this case it keeps its own object (it owns the object), and the 'Object Class Name' (in IB) tells what kind of object it is. In IB there is also a check box called 'Automatically prepares content' which can be used for automatically creating the object in question.
Case two: NSObjectController
has its content outlet pointing at some object, for instance MyDocument. In this case it seems that 'Object Class Name' (in IB) is of no use. Since in that case it's the MyDocument that owns the object in question.
Is this also incorrect?
____________________________________________________________________________________
Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel and lay it on us. http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden