Re: Converting Cocoa Menus to Carbon Menus and vice versa
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