• 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: NSPopUpButton questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >NSPopUpButton questions (From: "email@hidden" <email@hidden>)

  • Prev by Date: Re: Best way to hook into the run loop?
  • Next by Date: Re: Best way to hook into the run loop?
  • Previous by thread: NSPopUpButton questions
  • Next by thread: Re: NSPopUpButton questions
  • Index(es):
    • Date
    • Thread