Re: NSOutlineView and weird binding behaviour
Re: NSOutlineView and weird binding behaviour
- Subject: Re: NSOutlineView and weird binding behaviour
- From: Jerry Krinock <email@hidden>
- Date: Tue, 17 Jun 2008 13:56:09 -0700
On 2008 Jun, 17, at 3:02, Godfrey van der Linden wrote:
This behaviour is really bending my mind. I thought I got bindings
but it is really fooling me.
I have 3 outline views controlled by a NSViewController. These
outline views are bound for values to individual tree controllers
arrangedObjects.shortName and each tree controller has its content
set bound to representedObject.object.relationshipset
Now when I import objects into the everything is displayed as
expected. However if I open a document that is already populated
nothing is displayed?
Try checking the "Prepares Content" checkbox in the attributes of that
tree controller. I believe that checkbox is equivalent to -
setAutomaticallyPreparesContent.
This is my second-favorite object controller fix, behind "Handles
Content As Compound Value". I've never taken the time to understand
what they do, but one of them often solves problems like this.
_______________________________________________
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