Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
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.



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>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.