Re: setDoubleAction - Don't want it triggered when double clicking a column header.
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