• 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
menu bar without nib
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

menu bar without nib


  • Subject: menu bar without nib
  • From: Dmitry Markman <email@hidden>
  • Date: Tue, 30 Dec 2003 23:01:34 -0500

Hi,

is there a way to set up menu bar with Cocoa but without nib file

NSMenu * menu = [[NSMenu alloc] initWithTitle : @"dimatitle"] ;
[menu addItemWithTitle: @"Info Panel..."
action: @selector(showInfoPanel:)
keyEquivalent: @""];
...
...

[NSApp setMainMenu: menu];

doesn't work for me

thanks

Dmitry Markman
_______________________________________________
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: menu bar without nib
      • From: j o a r <email@hidden>
  • Prev by Date: Re: Display text suggestions
  • Next by Date: XCode
  • Previous by thread: Re: NiftyMatrix
  • Next by thread: Re: menu bar without nib
  • Index(es):
    • Date
    • Thread