bindings duplicates object returned
bindings duplicates object returned
- Subject: bindings duplicates object returned
- From: Eric Slosser <email@hidden>
- Date: Wed, 07 Dec 2011 23:05:34 -0500
I have an NSTreeController whose 'content array' is bound to another object's 'content' key.
It appears that the binding mechanism duplicates the array that was returned by [foo content].
This is bad, because changes that 'foo' makes later to its m_content never show up in the window. It's also bad because [NSTreeController selectedObject] doesn't correspond to anything in the tree under [foo content].
I can work around this by NOT using bindings to establish the controller's content, instead using [NSTreeController setContent:].
1. Where in the docs is this binding duplication described?
2. Is there a way to use bindings and avoid having [foo content] duplicated?
_______________________________________________
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