• 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
Detecting a double click outside the table
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Detecting a double click outside the table


  • Subject: Detecting a double click outside the table
  • From: Damien Cooke <email@hidden>
  • Date: Wed, 2 Jul 2008 07:18:26 +0930

Hi all,
I have a window that has a custom NSTableView and an image cell. I have used this [tableView setDoubleAction: @selector(doubleAction:)]; to set the double action. The issue is that I have a method in the tableview that the window controller can use to determine if a double click has occurred, I check this in the delegate (BOOL)tableView: (NSTableView *)aTableView shouldSelectRow:(NSInteger)rowIndex but it only works on the third click because it gets called every time I click. There has to be a better way of detecting the double click in the tableview and telling my controller class this has happened. Can someone point me in the right direction?


Regards
Damien
_______________________________________________

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: Scaled Printing
  • Next by Date: Re: Correct Order for CFRelease-ing CFNetwork Refs?
  • Previous by thread: [TEST] Test with an orange.com address
  • Next by thread: Best way to handle background i/o and notify main UI thread
  • Index(es):
    • Date
    • Thread