• 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: Emulating Carbon menu bevel button?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Emulating Carbon menu bevel button?


  • Subject: Re: Emulating Carbon menu bevel button?
  • From: Kyle Sluder <email@hidden>
  • Date: Mon, 25 May 2009 13:04:26 -0700

On Mon, May 25, 2009 at 2:42 AM, Jo Meder <email@hidden> wrote:
> I can go with that, although it has been a choice to have the menu on the
> right with the arrow bottom right facing right for a long time on Carbon.
> It's been the option I've used most, but I'm happy to go the other way now
> it seems to be the only one endorsed in the HIG. The arrow is still really
> big though.

You're right; that's an annoying bug.  File away, maybe they'll
eventually fix it.

> That's what I'm doing, by emulating the Carbon control. I think this is a
> deficiency in Cocoa, I don't see how it's possible implement the bevel
> button with a popup menu as shown in the HIG, where the button represents
> the menu title and always displays the same image. The Carbon control is a
> very useful one which I've been using for over a decade I suppose. I was
> just interested to know if anyone else had done this and what approach they
> took.

So what you want is a pull-down menu, not a pop-up menu?  Same class,
different behavior.

If you do want the pop-up behavior, minus the changing of the button
title, look at -[NSPopUpButtonCell setUsesItemFromMenu:].  Be careful,
though, I've found it to be pretty buggy.

--Kyle Sluder
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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

  • Follow-Ups:
    • Re: Emulating Carbon menu bevel button?
      • From: Jo Meder <email@hidden>
References: 
 >Emulating Carbon menu bevel button? (From: Jo Meder <email@hidden>)
 >Re: Emulating Carbon menu bevel button? (From: Jo Meder <email@hidden>)
 >Re: Emulating Carbon menu bevel button? (From: Kyle Sluder <email@hidden>)
 >Re: Emulating Carbon menu bevel button? (From: Jo Meder <email@hidden>)

  • Prev by Date: Re: Removing delay for a menu in NSSegmentedControl?
  • Next by Date: Re: NSFormatter Question
  • Previous by thread: Re: Emulating Carbon menu bevel button?
  • Next by thread: Re: Emulating Carbon menu bevel button?
  • Index(es):
    • Date
    • Thread