On Dec 5, 2009, at 6:29 PM, timm...@gmail.com 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 (Cocoa-dev@lists.apple.com)

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 arch...@mail-archive.com

Reply via email to