Re: [NSapp mainMenu] returns nil
Re: [NSapp mainMenu] returns nil
- Subject: Re: [NSapp mainMenu] returns nil
- From: j o a r <email@hidden>
- Date: Thu, 30 Mar 2006 18:26:35 +0200
On 30 mar 2006, at 16.05, Christian Stieber wrote:
So, I'm still looking for hints. Am I missing something
that I need to do on application startup? I need to play
around with uids a bit --- on startup, I check whether
I have root, fork() a helper process if I do, then drop
root privileges, THEN I call +sharedApplication. It
doesn't make a difference, though --- I tried calling
+sharedApplication first thing in the program, so it
even got fork()ed and everything, I tried calling it
after the fork() but before giving up root --- no´
difference at all. I also double-triple-quadruple-
checked to ensure that I'm still on the process that
was launched from Finder (instead of accidentally
mixing up "child" and "parent" processes).
Do you ever call NSApplicationMain()? Do you have a "MainMenu.nib"
file, with a menu in it? Do you have a NSRunLoop configured and
running? If the answer was no to any of these questions, why is that?
I wouldn't start trying to access the menu before "-applicationWill/
DidFinishLaunching:" if I could help it. See if it isn't working OK
at that time if you just leave it alone while it's getting set up.
j o a r
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden