Re: NSTableView bindings and current selection
Re: NSTableView bindings and current selection
- Subject: Re: NSTableView bindings and current selection
- From: Jason Wiggins <email@hidden>
- Date: Tue, 9 Sep 2008 10:58:02 +1000
On 09/09/2008, at 06:19 , Corbin Dunn wrote:
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
Thanks Ben and Corbin, I'll check this out.
Regards,
Jason
_______________________________________________
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