• 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: does NSMenuItem setMixedStateImage or setOnStateImage work?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: does NSMenuItem setMixedStateImage or setOnStateImage work?


  • Subject: Re: does NSMenuItem setMixedStateImage or setOnStateImage work?
  • From: Camillo Lugaresi <email@hidden>
  • Date: Thu, 19 Jan 2006 13:24:33 +0100

On 19/gen/06, at 08:43, Kurt Bigler wrote:

The question this brings up for me: if it's true that Cocoa menus are a
layer on top of Carbon menus, then is there a way to bridge into carbon in
order to get some other menu item mark (character) alternatives to work
around this (apparent) Cocoa bug?

Yes, but you have to use the undocumented function _NSGetCarbonMenu. There are some caveats, such as the fact that NSMenu does not create a MenuRef until the menu is put in the menubar or used as a popup menu for the first time, so you might have to force this (search the web or the archives of this list for more information). However, once you have the MenuRef you should definitely be able to do what you want.


Camillo
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: does NSMenuItem setMixedStateImage or setOnStateImage work?
      • From: Kurt Bigler <email@hidden>
References: 
 >Re: does NSMenuItem setMixedStateImage or setOnStateImage work? (From: Kurt Bigler <email@hidden>)

  • Prev by Date: Re: Office 2003 (Windows) style menus
  • Next by Date: Re: UIElement activation
  • Previous by thread: Re: does NSMenuItem setMixedStateImage or setOnStateImage work?
  • Next by thread: Re: does NSMenuItem setMixedStateImage or setOnStateImage work?
  • Index(es):
    • Date
    • Thread