• 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: Click & Hold on NSButton
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Click & Hold on NSButton (From: August Trometer <email@hidden>)

  • Prev by Date: Re: NSDocument-based architecture suiting my NSBundle-based documents case?
  • Next by Date: triple variables?
  • Previous by thread: Click & Hold on NSButton
  • Next by thread: Re: Click & Hold on NSButton
  • Index(es):
    • Date
    • Thread