Re: NSTreeController's arrangedObjects returning _NSControllerTreeProxy for KVC path?
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