• 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: Russ <email@hidden>
  • Date: Wed, 12 Nov 2008 10:37:21 -0800 (PST)

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

>Did you had a look at the "nibless app" articles on Lap Cat's blog? http://lapcatsoftware.com/blog/2008/10/20/working-without-a-nib-part-7-the-empire-strikes-back/

I had seen some of the earlier ones, not the latest. Even the NSApplication docs talk about using your own main function. I'll take a look at loading my mini-NIB directly, and see if that will get it set up right. I hadn't had any luck with setAppleMenu before, though I have some better dump tools for monitoring what is happening now so maybe that's worth another try too.




_______________________________________________

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: "Michael Ash" <email@hidden>
    • RE: Setting up a main menu in a NIB(XIB)?
      • From: Etienne GuĂ©rard <email@hidden>
  • Prev by Date: Re: overt and covert retain-release question (instigated by UIViewController on iPhone)
  • Next by Date: Blue default button style hangs.
  • 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