• 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: Standard "combo" button class?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Standard "combo" button class?


  • Subject: Re: Standard "combo" button class?
  • From: Nick Zitzmann <email@hidden>
  • Date: Mon, 19 Mar 2007 15:34:05 -0600


On Mar 19, 2007, at 3:21 PM, Nicholas Meyer wrote:

I'm working on the user interface for my first Cocoa application. I'm curious, is there a standard class for the type of button which sends an action when clicked OR opens a menu when the mouse button is pressed and held for a short time (i.e. the Build button in XCode)?

No.

If not, would subclassing NSButton to set an NSTimer on mouseDown: that shows the menu and short-circuits the button's tracking loop be the best way to handle it? Or is there a way to subclass NSPopUpButton that would be easier?

You can probably make your own variation of NSPopUpButton. The control Xcode uses is not common; most applications use a custom pop- up button instead (see Pages and Keynote for example).


Nick Zitzmann
<http://www.chronosnet.com/>


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Standard "combo" button class? (From: Nicholas Meyer <email@hidden>)

  • Prev by Date: Standard "combo" button class?
  • Next by Date: Re: Creating localized directories
  • Previous by thread: Standard "combo" button class?
  • Next by thread: Re: Standard "combo" button class?
  • Index(es):
    • Date
    • Thread