Re: NSTreeController selection (probably a silly mistake)
Re: NSTreeController selection (probably a silly mistake)
- Subject: Re: NSTreeController selection (probably a silly mistake)
- From: Felix Franz <email@hidden>
- Date: Tue, 10 Oct 2006 13:21:43 +0200
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