_NSGetCarbonMenu question
_NSGetCarbonMenu question
- Subject: _NSGetCarbonMenu question
- From: Adhamh Findlay <email@hidden>
- Date: Sun, 13 Jun 2004 17:36:52 -0500
Do I have to use |_NSGetCarbonMenu if I want to create a menu
programmatically?
I'm working on a nib free project, and I see that NSMenuView is
deprecated. I've this so far:
[NSApp setMainMenu: [[NSMenu alloc] initWithTitle:@"MainMenu"]];
[[NSApp mainMenu] addItem:[[NSMenuItem alloc] initWithTitle:@"File"
action:@selector(_stop) keyEquivalent: @"d"]];
I never see the menu, I only get the Apple menu and the Application menu.
Do I have to use _NSGetCarbonMenu to do this type of operation, or have
I missed something else?
Thanks,
Adhamh
|
_______________________________________________
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.