Re: Carbon menu with Cocoa?
Re: Carbon menu with Cocoa?
- Subject: Re: Carbon menu with Cocoa?
- From: Daniel Jalkut <email@hidden>
- Date: Wed, 4 May 2005 13:15:10 -0700
Interesting. Thanks for this tip. Out of curiosity, I set a
breakpoint on MenuSelect in my Cocoa app and hit it as soon as I
clicked the menu bar:
#0 0x931b6ab4 in MenuSelect ()
#1 0x9361ec9c in _NSHandleCarbonMenuEvent ()
#2 0x9361c6cc in _DPSNextEvent ()
#3 0x9361c048 in -[NSApplication
nextEventMatchingMask:untilDate:inMode:dequeue:] ()
#4 0x936185ac in -[NSApplication run] ()
#5 0x93708e04 in NSApplicationMain ()
So I guess it's using them to some extent, but maybe not in the same
way as before.
Daniel
On May 4, 2005, at 12:28 PM, Scott Thompson wrote:
On May 4, 2005, at 11:42 AM, Daniel Jalkut wrote:
I suggest searching google for "_NSGetCarbonMenu" ... I've never
used it myself.
Daniel
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).
Scott
_______________________________________________
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