Re: NSTreeController selection (probably a silly mistake) (solved and it was silly)
Re: NSTreeController selection (probably a silly mistake) (solved and it was silly)
- Subject: Re: NSTreeController selection (probably a silly mistake) (solved and it was silly)
- From: Derrek Leute <email@hidden>
- Date: Tue, 10 Oct 2006 10:38:33 -0400
I did bind the content binding. And I just unbound it and everything
is working right!
That leads me to the question of what is the benefit of having a
content binding? (I did it because that's how the NSXML Tree
Controller example did it) Does it exist so you can bind sort
descriptors rather than using the "Create Sort Descriptors" check box
on the column binding? (and selection index paths)
Thanks a lot!
--Derrek
On Oct 10, 2006, at 7:21 AM, Felix Franz wrote:
Hi Derrek,
On Oct 10, 2006, at 4:26 AM, Derrek Leute wrote:
I am trying to access the currently selected object in an
NSOutlineView who's content is bound to arrangedObjects of an
NSTreeController.
did you use the 'content'-binding of the NSOutlineView? You need to
bind 'selectionIndexPaths' too.
This is done automatically if you bind to a NSTableColumn. See
<http://developer.apple.com/documentation/Cocoa/Reference/
CocoaBindingsRef/BindingsText/NSOutlineView.html#//apple_ref/doc/
uid/NSOutlineView-DontLinkElementID_305> for the documentation.
Otherwise the
selection of the NSOutlineView and NSTreeController is not in sync ...
Cheers,
felix
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden