Re: [NSApp mainMenu] = null!!!
Re: [NSApp mainMenu] = null!!!
- Subject: Re: [NSApp mainMenu] = null!!!
- From: Sherm Pendley <email@hidden>
- Date: Sat, 20 Jan 2007 14:56:06 -0500
On Jan 20, 2007, at 9:57 AM, Daniel R. Killoran,Ph.D. wrote:
What is the significance of
theMenu = [NSApp mainMenu];
returning theMenu = 0 ???
Could be you're calling -mainMenu too early in your app's lifespan,
before NSApp has been pointed to the shared NSApplication instance. A
message sent to nil will return nil.
sherm--
Web Hosting by West Virginians, for West Virginians: http://wv-www.net
Cocoa programming in Perl: http://camelbones.sourceforge.net
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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