• 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 double click binding and clickedRow
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTableView double click binding and clickedRow


  • Subject: NSTableView double click binding and clickedRow
  • From: Paul Thomas <email@hidden>
  • Date: Tue, 18 Mar 2008 20:59:23 +0000

I have an NSTableView (multiple selection, not editable) and I want to do something with the elements of the displayed list when the user double clicks. Even though the table has multiple selection, I only want to action the single element that the user double-clicked.

If I set up a target/action message using setTarget: and setDoubleAction:, everything works fine and I can get clickedRow to tell me the row.

If I use bindings in IB3 and bind "Double Click Target", I get the action message, but clickedRow is always -1.

So, is this a bug? If so, I'll radar it. But I wanted to check if this is expected behaviour because of something special about bindings.

ta,
pt.
_______________________________________________

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


  • Prev by Date: Re: interface builder 3 question
  • Next by Date: NSTextField value binding (feeling like a newbie)
  • Previous by thread: Re: Best way to execute a shell script from a cocoa application
  • Next by thread: NSTextField value binding (feeling like a newbie)
  • Index(es):
    • Date
    • Thread