NSTableView bindings and current selection
NSTableView bindings and current selection
- Subject: NSTableView bindings and current selection
- From: Jason Wiggins <email@hidden>
- Date: Mon, 8 Sep 2008 20:30:29 +1000
- Resent-date: Mon, 8 Sep 2008 21:14:41 +1000
- Resent-from: Jason Wiggins <email@hidden>
- Resent-message-id: <email@hidden>
- Resent-to: Cocoa-Dev List <email@hidden>
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.
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