• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: What is Object Class Name used for in bindings?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: What is Object Class Name used for in bindings?
      • From: mmalc crawford <email@hidden>
  • Prev by Date: Re: Control/Option keys both set "control" modifier flag in NSEvent
  • Next by Date: Re: Running Shell Script from Cocoa Application
  • Previous by thread: Re: What is Object Class Name used for in bindings?
  • Next by thread: Re: What is Object Class Name used for in bindings?
  • Index(es):
    • Date
    • Thread