Re: Getting mainMenu raises exception
Re: Getting mainMenu raises exception
- Subject: Re: Getting mainMenu raises exception
- From: Bob Ippolito <email@hidden>
- Date: Fri, 25 Jun 2004 14:53:17 -0400
On Jun 25, 2004, at 1:14 PM, Yann Bizeul wrote:
>
You should try [NSAPP mainMenu]
>
>
As I remember, NSApp is a shortcut to [NSApplication sharedApplication]
Not really, NSApp will be nil if there is no current NSApplication
instance. I've used that behavior before in order to determine (from a
library) whether I need to setup a stub application or if the user has
already done that by other means.
-bob
[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.