• 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: Nelson Santos <email@hidden>
  • Date: Sat, 20 May 2006 10:55:38 -0700

That's what I was looking for, thanks.

Nelson


On May 20, 2006, at 10:19 AM, Greg Titus wrote:


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
References: 
 >setDoubleAction - Don't want it triggered when double clicking a column header. (From: Nelson Santos <email@hidden>)
 >Re: setDoubleAction - Don't want it triggered when double clicking a column header. (From: Greg Titus <email@hidden>)

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