Re: NSPopUpButton questions
Re: NSPopUpButton questions
- Subject: Re: NSPopUpButton questions
- From: Keary Suska <email@hidden>
- Date: Sun, 6 Dec 2009 08:22:46 -0700
On Dec 5, 2009, at 6:29 PM, email@hidden wrote:
> The Apple docs for NSPopUpButtons says to avoid accessing it's NSMenu directly because it may need to do housekeeping. I had to access it's NSMenu directly though so that I could make a separator menu item. Is this fine for this situation, or is there a better way to do this to conform to Apple's recommendation?
I believe this warning is about changing the menu at certain times, such as when the button is about to pop up.
> Also, is there a way to set a menu item to act like it's disabled, but without graying out its title and image? I'm trying to insert a "Bonjour section" and want the Bonjour menu item and image to be unselectable, but not grayed out.
No that I am aware of, and probably because is smells like a HIG violation. If you want a named subgroup, you should use a submenu.
HTH,
Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"
_______________________________________________
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