• 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: setDoubleAction - Don't want it triggered when double clicking a column header.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: setDoubleAction - Don't want it triggered when double clicking a column header.


  • Subject: Re: setDoubleAction - Don't want it triggered when double clicking a column header.
  • From: Greg Titus <email@hidden>
  • Date: Sat, 20 May 2006 10:19:41 -0700


On May 20, 2006, at 9:57 AM, Nelson Santos wrote:

Hi all,

Small question.

I called setDoubleAction to assign an action method to be called when the user double clicks on a NSTableView. It works great. However, when the user double clicks on the column header, the method is also called (and the docs corroborate this). Is there a way to determine if the user actually double clicked on a row or a table column?

The sender argument of my action method is of type NSTableView for both situations. So, that doesn't help.


Call -clickedRow on the sender. It will be -1 if the user clicked in the header or past the end of the rows.


Hope this helps,
	- Greg
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: setDoubleAction - Don't want it triggered when double clicking a column header.
      • From: Nelson Santos <email@hidden>
References: 
 >setDoubleAction - Don't want it triggered when double clicking a column header. (From: Nelson Santos <email@hidden>)

  • Prev by Date: Re: Newbie Q : communication problem with NSTableView
  • Next by Date: Re: Newbie Q : communication problem with NSTableView
  • Previous by thread: setDoubleAction - Don't want it triggered when double clicking a column header.
  • Next by thread: Re: setDoubleAction - Don't want it triggered when double clicking a column header.
  • Index(es):
    • Date
    • Thread