On Mon, May 25, 2009 at 2:42 AM, Jo Meder <[email protected]> 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 protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to