Cocoa menus and Carbon menus
Cocoa menus and Carbon menus
- Subject: Cocoa menus and Carbon menus
- From: Alco Blom <email@hidden>
- Date: Thu, 11 Sep 2003 17:19:30 +0200
From old messages in this list I have understood that Cocoa menus
are based on Carbon menus.
I have a utility that adds Carbon (bookmark) menus to Safari's menu bar.
This all seems to work very well until I stumbled on a problem today.
When I use the Add Bookmark command of Safari, which contains
a popup menu, it has the effect of menu with name "OtherViews"
appearing in Safari's menu bar. This "OtherViews" menu has the
same contents as the popup menu of the Add Bookmark Window.
At the same time, my Carbon bookmark menu, which was in Safari's
menu bar disappears. The "OtherViews" menu is there now instead.
My current theory is that when Cocoa allocates a menu it does
not check if the menu is already in use by Carbon.
Is that possible? Can I somehow let Cocoa know about the
Carbon menus I have inserted in the menu bar?
If you want to see it happening, you can download my app here:
<
http://www.url-manager.com/version310.html>
- Alco
--
Alco Blom - <
mailto:email@hidden>
URL Manager Pro for Macintosh -
<
http://www.url-manager.com>
Web Confidential for Macintosh, Windows and Palm -
<
http://www.web-confidential.com>
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.