[NSApp mainMenu] returns nil under 10.4.3
[NSApp mainMenu] returns nil under 10.4.3
- Subject: [NSApp mainMenu] returns nil under 10.4.3
- From: Alex Fischer <email@hidden>
- Date: Mon, 28 Nov 2005 16:04:02 +0100
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)
with the following main() function:
int main(int argc, char *argv[])
{
NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init];
[NSApplication sharedApplication];
[NSApp setDelegate: [myAppDelegate new]];
[NSApp run];
[pool release];
return 0;
}
"myAppDelegate" is a custom class that implements the
"applicationWillFinishLaunching" delegate method.
Until (included 10.4.2), running that app, created a menu-bar with a
working application menu, that included the usual menu items
including "Quit".
Under 10.4.3 only the menu-bar with the app name shows up but
clicking on it does not unfold the menu.
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?
Thanks for your help.
Alexander Fischer
_______________________________________________
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