• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Getting mainMenu raises exception
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >Getting mainMenu raises exception (From: Mark Munz <email@hidden>)
 >Re: Getting mainMenu raises exception (From: Yann Bizeul <email@hidden>)

  • Prev by Date: Re: cocoa-dev digest, Vol 2 #4410 - 15 msgs
  • Next by Date: Question about Sheets
  • Previous by thread: Re: Getting mainMenu raises exception
  • Next by thread: Re: Getting mainMenu raises exception
  • Index(es):
    • Date
    • Thread