Re: Carbon Menu in Cocoa app
Re: Carbon Menu in Cocoa app
- Subject: Re: Carbon Menu in Cocoa app
- From: James Hober <email@hidden>
- Date: Tue, 18 Mar 2008 15:12:34 -0700
On Mar 18, 2008, at 11:32 AM, cai qin wrote:
I have a cocoa app developed in Tiger . Is it possible that Using a
carbon
menuRef to get App 's mainMenu?
Why not just use public Carbon API?
MenuRef carbonMenuBar = AcquireRootMenu();
...
error = ReleaseMenu(carbonMenuBar); //clean up
and remember that Carbon menu items are 1-based unlike Cocoa menu
items that are 0-based.
James
PS This seems like more of a Carbon question than a Cocoa question
PSS sorry for the repost but I forgot to change the subject line earlier
_______________________________________________
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