Re: Setting up a main menu in a NIB(XIB)?
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