• 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: Object class name/setObjectClass in NSController
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >Object class name/setObjectClass in NSController (From: Gwynne <email@hidden>)

  • Prev by Date: Re: Strategy to split up large class files?
  • Next by Date: Re: Draggable Tags?
  • Previous by thread: Object class name/setObjectClass in NSController
  • Next by thread: Draggable Tags?
  • Index(es):
    • Date
    • Thread