• 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: NSTreeController's arrangedObjects returning _NSControllerTreeProxy for KVC path?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTreeController's arrangedObjects returning _NSControllerTreeProxy for KVC path?


  • Subject: Re: NSTreeController's arrangedObjects returning _NSControllerTreeProxy for KVC path?
  • From: "Danny Price" <email@hidden>
  • Date: Thu, 12 Jun 2008 16:34:29 +0100

>
> In general, you should not treat NSController-derived classes as holders of
> data.  They are specifically for binding to.
>
Since the "shapeTreeController" gets its content by binding to something
> else, why don't you just directly access that something instead of trying to
> go through the controller?  In other words, access your model, not your
> controller.


The controller's content is an NSMutableArray in the document and the nodes
are CD entities with parent and children relationships. However I also need
the selection (which persists per-document) and the only place I can get
that from is the controller.
_______________________________________________

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

References: 
 >NSTreeController's arrangedObjects returning _NSControllerTreeProxy for KVC path? (From: Daniel Price <email@hidden>)
 >Re: NSTreeController's arrangedObjects returning _NSControllerTreeProxy for KVC path? (From: Ken Thomases <email@hidden>)

  • Prev by Date: Re: argument checks
  • Next by Date: Re: NSTreeController's arrangedObjects returning _NSControllerTreeProxy for KVC path?
  • Previous by thread: Re: NSTreeController's arrangedObjects returning _NSControllerTreeProxy for KVC path?
  • Next by thread: Re: NSTreeController's arrangedObjects returning _NSControllerTreeProxy for KVC path?
  • Index(es):
    • Date
    • Thread