Re: [NSApp mainMenu] returns nil under 10.4.3
Re: [NSApp mainMenu] returns nil under 10.4.3
- Subject: Re: [NSApp mainMenu] returns nil under 10.4.3
- From: Alex Fischer <email@hidden>
- Date: Tue, 29 Nov 2005 09:34:43 +0100
Alexander Fischer
Basasoft, S.L.
c/ Bahía de Cadiz, 65 / 2º D
28042 Madrid
www.basasoft.com
email@hidden
On Nov 29, 2005, at 9:05 , John C. Randolph wrote:
On Nov 28, 2005, at 7:04 AM, Alex Fischer wrote:
Hi:
I am having problems with an app under Mac OS X 10.4.3 and would
like to know if some has an explanation:
I have an application that is developed without using a NIB
(please do not complain about that, I know it is not the usual way
to go)
As you've just discovered, that means that you can't depend on any
initialization being done for you.
Debugging the application and trying to access [NSApp mainMenu]
returns nil on 10.4.3.
Is that change correct or am I doing something wrong. Why does it
work on 10.4.2.
Any ideas?
Since you're not using a .nib file, how do you expect the
"mainMenu" outlet to ever get connected?
I have no idea why it works on 10.4.2. That's probably a bug.
Well, as it has always worked for me, I just thought that sending
"sharedApplication" or "run" to NSApp was setting up the NSMenu
object returned by "mainMenu".
In any case thank you for your help
-jcr
John C. Randolph <email@hidden> (408) 914-0013
Roaming Cocoa Engineer,
Available for your projects at great Expense and Inconvenience.
_______________________________________________
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