• 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: NSOutline/NSTable-View: delegate or bindings?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSOutline/NSTable-View: delegate or bindings?


  • Subject: Re: NSOutline/NSTable-View: delegate or bindings?
  • From: David Spooner <email@hidden>
  • Date: Sat, 15 Dec 2007 10:36:37 -0700


On 14-Dec-07, at 5:39 PM, Mike R. Manzano wrote:

I have an NSOutlineView that will be populated with a list of objects that is synthesized by a custom controller. My question is, is it better to make the custom controller the delegate of the outline view, or make it a subclass of NSTreeController to override - arrangedObjects?

I would not subclass NSTreeController if possible. I would bind the tree controller's content to the object which synthesizes the tree.


If the latter, I noticed that -arrangedObjects returns a "proxy root tree". What is that?

It is an implementation detail :)

dave

Thanks,

Mike

_______________________________________________

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: NSOutline/NSTable-View: delegate or bindings?
      • From: Keith Duncan <email@hidden>
References: 
 >NSOutline/NSTable-View: delegate or bindings? (From: "Mike R. Manzano" <email@hidden>)

  • Prev by Date: Re: Doesn't -willChangeValueForKey: copy the value before I change it?
  • Next by Date: Re: NSOutline/NSTable-View: delegate or bindings?
  • Previous by thread: NSOutline/NSTable-View: delegate or bindings?
  • Next by thread: Re: NSOutline/NSTable-View: delegate or bindings?
  • Index(es):
    • Date
    • Thread