_NSGetCarbonMenu useage
_NSGetCarbonMenu useage
- Subject: _NSGetCarbonMenu useage
- From: Luc Vandal <email@hidden>
- Date: Wed, 04 May 2005 16:20:07 -0400
Hi!
I'm trying to use _NSGetCarbonMenu but all I get is a crash. I'm trying to use the function from my window controller class. Here's what I added:
#import <Carbon/Carbon.h>
extern MenuRef _NSGetCarbonMenu( NSMenu *menu);
...
...
- (void)SomeFunction
{
NSMenu* menu = [NSApp menu];
MenuRef mr = _NSGetCarbonMenu( menu ); //crashes here
}
Have I forgot something?
Thanks!
Luc _______________________________________________
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