• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSTableView bindings and current selection
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: NSTableView bindings and current selection
      • From: Corbin Dunn <email@hidden>
    • Re: NSTableView bindings and current selection
      • From: Benjamin Stiglitz <email@hidden>
  • Prev by Date: Re: What is a Delegate?
  • Next by Date: Re: How to create a GUID?
  • Previous by thread: Re: What is a Delegate?
  • Next by thread: Re: NSTableView bindings and current selection
  • Index(es):
    • Date
    • Thread