Re: NSTreeController bound selection issue
Re: NSTreeController bound selection issue
- Subject: Re: NSTreeController bound selection issue
- From: m <email@hidden>
- Date: Fri, 25 May 2007 09:57:23 -0700
This thread might be useful.
<http://www.cocoabuilder.com/archive/message/cocoa/2005/5/26/137075>
The upshot is that your binding of selectionIndexPaths is one
directional. Changes in your tree controller get relayed to your
custom view, but not the other way around. It's worth noting that the
GraphicsView in the GraphicBindings example <http://homepage.mac.com/
mmalc/CocoaExamples/controllers.html> calls the controller directly
to update the selection.
_murat
On May 25, 2007, at 9:31 AM, Keith Duncan wrote:
what does the code look like?
Along with the relevant code to determine the correct node etc the
essential message is
[self setSelectionIndexPaths:[NSArray arrayWithObject:[clickedNode
indexPath]]];
where self is the view.
- Keith
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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