• 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 right clicked row
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTableView right clicked row


  • Subject: NSTableView right clicked row
  • From: chaitanya pandit <email@hidden>
  • Date: Wed, 29 Oct 2008 01:41:12 +0530

Hi list,
I have a NSTableView, and i display a menu when the user right clicks a row, this menu allows the user to delete that item.
My problem is, how do i get the row which was right clicked?


Consider this: currently the row#1 is selected and the user right clicks row#3 the row#3's cell will have a blue border,
now in the right click's menu's action method if i call [tableview selectedRow]; it'll return "1" where as what i want is "3"


How do i identify the row that was right clicked?

Thanks
Chaitanya

_______________________________________________

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 right clicked row
      • From: Randall Meadows <email@hidden>
  • Prev by Date: Re: ASL & Unicode in Xcode's Console
  • Next by Date: Getting localized NSPredicateEditor
  • Previous by thread: Re: Binding question
  • Next by thread: Re: NSTableView right clicked row
  • Index(es):
    • Date
    • Thread