• 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: Converting Cocoa Menus to Carbon Menus and vice versa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Converting Cocoa Menus to Carbon Menus and vice versa


  • Subject: Re: Converting Cocoa Menus to Carbon Menus and vice versa
  • From: Finlay Dobbie <email@hidden>
  • Date: Mon, 4 Feb 2002 18:47:47 +0000

On Monday, February 4, 2002, at 06:25 PM, Rosyna wrote:

Is it possible to convert an NSMenu into a MenuRef and vice versa, or convert and individual menu item?

There's a private function in AppKit for this. Declare this in your code:
extern MenuRef _NSGetCarbonMenu(NSMenu *);
and it should work. Note that there are probably some issues with this (if you use OmniWeb and notice that the dynamic menuitem stuff it uses is a bit iffy, well, you're right ;-)

Not sure about going the other way...

-- Finlay


References: 
 >Converting Cocoa Menus to Carbon Menus and vice versa (From: Rosyna <email@hidden>)

  • Prev by Date: Re: Localization and international preferences
  • Next by Date: Re: Speed of Quartz (was: optimizing compilers)
  • Previous by thread: Converting Cocoa Menus to Carbon Menus and vice versa
  • Next by thread: Transparent Button
  • Index(es):
    • Date
    • Thread