• 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: Adding a menu form a second nib
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Adding a menu form a second nib


  • Subject: Re: Adding a menu form a second nib
  • From: Charles Jolley <email@hidden>
  • Date: Sat, 22 Jun 2002 16:51:15 -0500

You can get the main menu from the NSApplication instance (NSApp):

NSMenu* mainMenu = [NSApp mainMenu] ;

You can work with this menu just like you would any other. See the docs on NSMenu to learn how to add a submenu, etc.

-C

On Saturday, June 22, 2002, at 04:33 PM, Gordon Lister wrote:

Newbie question.

Have created a menu in a second nib with Interface Builder.
Am trying to get this to appear in the Menu Bar.

Any help welcomed.

gsl
_______________________________________________
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: 
 >Adding a menu form a second nib (From: Gordon Lister <email@hidden>)

  • Prev by Date: Re: PayPal [OT]
  • Next by Date: Re: PayPal
  • Previous by thread: Adding a menu form a second nib
  • Next by thread: Document name changed notification?
  • Index(es):
    • Date
    • Thread