Re: Carbon menu with Cocoa?
Re: Carbon menu with Cocoa?
- Subject: Re: Carbon menu with Cocoa?
- From: Shawn Erickson <email@hidden>
- Date: Wed, 4 May 2005 13:39:20 -0700
On May 4, 2005, at 1:02 PM, Ondra Cada wrote:
On 4.5.2005, at 21:28, Scott Thompson wrote:
It is my understanding (potentially flawed) that Tiger has removed
the Cocoa menu's reliance on the Carbon Menu Manager. Using
_NSGetCarbonMenu on Tiger may not work (I haven't tried it
myself... just a warning)
Can't say for sure (haven't had time to check details either), but
the menu code *did* change for sure: my tear-off menu support which
used to work all right through 10.0-10.3 is somewhat broken in 10.4.
Hopefully it is a good news that the Carbon menu core indeed went
poof: that is to be determined yet :)
The answer is just a simple shark session away[1]... it uses
HIToolbox to manage menus. In other words it still uses Carbon
(HIToolbox is generally part of Carbon).
The change that is likely affecting you is that the private API that
you are using changed or was removed in Tiger.
-Shawn
[1]
0.0% 73.5% AppKit NSApplicationMain
0.0% 73.5% AppKit -[NSApplication run]
0.0% 70.8% AppKit -[NSApplication
nextEventMatchingMask:untilDate:inMode:dequeue:]
0.0% 70.2% AppKit _DPSNextEvent
0.0% 58.5% AppKit _NSHandleCarbonMenuEvent
0.0% 58.5% HIToolbox MenuSelect
0.0% 58.5% HIToolbox MenuSelectCore(MenuData*, Point,
double, unsigned long, OpaqueMenuRef**, unsigned short*)
0.0% 57.4% HIToolbox TrackMenuCommon(MenuSelectData&,
unsigned char*)
0.0% 19.7% HIToolbox MenuChanged(MenuSelectData*)
0.0% 17.5% HIToolbox DrawTheMenu(MenuSelectData*,
__CFArray**, unsigned char*)
_______________________________________________
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