• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: _NSGetCarbonMenu question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >_NSGetCarbonMenu question (From: Adhamh Findlay <email@hidden>)

  • Prev by Date: Re: How can I find out info on running processes
  • Next by Date: NSImage representations [fixed]
  • Previous by thread: _NSGetCarbonMenu question
  • Next by thread: Hidden message
  • Index(es):
    • Date
    • Thread