Re: NSTableView bindings and current selection
Re: NSTableView bindings and current selection
- Subject: Re: NSTableView bindings and current selection
- From: Corbin Dunn <email@hidden>
- Date: Mon, 08 Sep 2008 13:19:51 -0700
On Sep 8, 2008, at 3:30 AM, Jason Wiggins wrote:
Hello all,
I have a tableView (showing query results) that has its values bound
to an array controller; that works fine. I also have a NSPathControl
showing the path of the selected item; this works fine too. I have
implemented a right-click contextual menu to "Show in Finder..." the
selected item in the tableView.
My question is, how do I get the path of the selected item so my
showInFinderMenuAction: method does as it's supposed to do?
To be totally honest, even though I have got the menu working (it's
a menuForEvent:theEvent method) and I can log the selected row
correctly, I'm unsure of what to do next to implement the contextual
menu.
As the tableView implements bindings, I can't see a way of getting
the selected items row/column value, let alone that row's path
reference.
Any help would be greatly appreciated.
In addition to what Ben said, please look at the DragNDropOutlineView
demo app, which does this (albeit without bindings).
corbin
_______________________________________________
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