• 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: Setting up a main menu in a NIB(XIB)?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Setting up a main menu in a NIB(XIB)?


  • Subject: RE: Setting up a main menu in a NIB(XIB)?
  • From: Etienne GuĂ©rard <email@hidden>
  • Date: Wed, 12 Nov 2008 13:52:25 -0500
  • Thread-topic: Setting up a main menu in a NIB(XIB)?

NSApplicationMain basically does the following:

[NSApplication sharedApplication];
[[NSBundle mainBundle] loadNibNamed:[[NSBundle mainBundle] objectForInfoDictionaryKey:@"NSMainNibFile"] owner:NSApp];
[NSApp run];

EG

-----Original Message-----
>It might be that your application doesn't use NSApplicationMain() as the program starting point.This
function is responsible for initializing stuff and loading the main
bundle's main nib file as specified in the Info.plist file.

Correct, I do not use it. Use NSApplication's sharedApplication and run. I had seen something (a flowchart, I think) that said run would do the nib-loading also, which I found puzzling, but  other docs do say the nib gets loaded before the run.

------------------------------------------------------------
This message and any attachments (the "message") are confidential and intended solely for the addressee(s). Any unauthorised use or dissemination is prohibited. E-mails are susceptible to alteration. Neither DxO Labs nor any of its subsidiaries or affiliates shall be liable for the message if altered, changed or falsified.
Ce message et toutes les pieces jointes (ci-apres le "message") sont confidentiels et etablis a l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisee est interdite. Tout message electronique est susceptible d'alteration. DxO Labs et ses filiales declinent toute responsabilite au titre de ce message s'il a ete altere, modifie ou falsifie.

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Setting up a main menu in a NIB(XIB)?
      • From: Russ <email@hidden>
References: 
 >Re: Setting up a main menu in a NIB(XIB)? (From: Russ <email@hidden>)

  • Prev by Date: Re: Cora Animation transormation
  • Next by Date: Re: Setting up a main menu in a NIB(XIB)?
  • Previous by thread: Re: Setting up a main menu in a NIB(XIB)?
  • Next by thread: Re: Setting up a main menu in a NIB(XIB)?
  • Index(es):
    • Date
    • Thread