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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to