Re: Cocoa menus in Carbon App
Re: Cocoa menus in Carbon App
- Subject: Re: Cocoa menus in Carbon App
- From: Eric Brunstad <email@hidden>
- Date: Sat, 11 Jun 2005 12:13:49 -0400
On Jun 11, 2005, at 11:12 AM, Mark Suska wrote:
Does anybody know how to use a Cocoa menu and window within a
carbon application?
I have looked at the CocoaInCarbon example application but it does
not use Cocoa menus.
This example opens a Carbon window and a Cocoa window but uses only
a Carbon menu.
Just adding a menu bar to the Cocoa nib does not work. When the
Cocoa window is opened the menu bar becomes a mix of the Carbon
menu that was there before and the Cocoa menu. The Carbon menus
that are left in the menu bar continue to function but Cocoa menus
do nothing when selected. Also, none of the items in the
application menu work even if you use the keyboard shortcuts, for
example, you can't quit the app using the menu nor by pressing
Command-Q.
Thank,
Mark
You can't have a Cocoa menubar in a Carbon app because it uses a
Cocoa runloop, not a Carbon one.
Eric Brunstad
Mind Sprockets Software
email@hidden
www.mindsprockets.com
_______________________________________________
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