Re: Click & Hold on NSButton
Re: Click & Hold on NSButton
- Subject: Re: Click & Hold on NSButton
- From: Ricky Sharp <email@hidden>
- Date: Mon, 18 Apr 2005 10:15:57 -0500
On Monday, April 18, 2005, at 08:28AM, August Trometer <email@hidden> wrote:
>I have an NSButton which, when clicked, rotates through several
>related settings for the UI. I have also attached a Contextual Menu
>to the button so that users can Control-Click and quickly go to their
>preferred option without having to rotate through all of them.
>
>What I'd also like to do is activate the CM when the user clicks and
>holds on the button. Is there an elegant way to do this without
>subclassing NSButton?
I think you'll have to subclass. As an example, check out Andreas Mayer's AMRollOverButton.
I would also file an enhancement request to have the click-and-hold behavior also trigger the display of the menu.
--
Rick Sharp
Instant Interactive(tm)
_______________________________________________
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