Re: _NSGetCarbonMenu question
Re: _NSGetCarbonMenu question
- Subject: Re: _NSGetCarbonMenu question
- From: Adhamh Findlay <email@hidden>
- Date: Sun, 13 Jun 2004 20:51:43 -0500
Looks like I found my answer in the MenuMadness example project.
Adhamh Findlay wrote:
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.
_______________________________________________
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.