• 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: Cocoa menus in Carbon App
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Cocoa menus in Carbon App
      • From: Gen Kiyooka <email@hidden>
References: 
 >Cocoa menus in Carbon App (From: Mark Suska <email@hidden>)

  • Prev by Date: Re: Passing more than 1 variable to a method/function
  • Next by Date: Dealing with never-alocated bugs
  • Previous by thread: Cocoa menus in Carbon App
  • Next by thread: Re: Cocoa menus in Carbon App
  • Index(es):
    • Date
    • Thread