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

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.


  • Follow-Ups:
    • Re: Object class name/setObjectClass in NSController
      • From: Chris Hanson <email@hidden>
  • Prev by Date: Animation during drag and drop
  • Next by Date: Re: Adding methods to dataSource
  • Previous by thread: Animation during drag and drop
  • Next by thread: Re: Object class name/setObjectClass in NSController
  • Index(es):
    • Date
    • Thread