• 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
Re: NSTableView bindings and current selection
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: NSTableView bindings and current selection
      • From: Jason Wiggins <email@hidden>
References: 
 >NSTableView bindings and current selection (From: Jason Wiggins <email@hidden>)

  • Prev by Date: Re: NSTableView bindings and current selection
  • Next by Date: How do create a DMG with license agreement?
  • Previous by thread: Re: NSTableView bindings and current selection
  • Next by thread: Re: NSTableView bindings and current selection
  • Index(es):
    • Date
    • Thread