• 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
_NSGetCarbonMenu question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

_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.


  • Follow-Ups:
    • Re: _NSGetCarbonMenu question
      • From: Adhamh Findlay <email@hidden>
  • Prev by Date: NSCalendarDate not localized
  • Next by Date: Hidden message
  • Previous by thread: Re: NSCalendarDate not localized
  • Next by thread: Re: _NSGetCarbonMenu question
  • Index(es):
    • Date
    • Thread