• 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: [NSApp mainMenu] returns nil
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [NSApp mainMenu] returns nil


  • Subject: Re: [NSApp mainMenu] returns nil
  • From: "John C. Randolph" <email@hidden>
  • Date: Tue, 29 Nov 2005 00:18:03 -0800


On Oct 28, 2005, at 12:37 AM, j o a r wrote:


On 28 okt 2005, at 09.31, Steve Checkoway wrote:

If I create a new menu and call setMainMenu: then the apple menu and the application menu are still there except this time the application menu is blank and it is not an item in the menu that I created (which is now returned by mainMenu).

Am I doing something horribly wrong or is this not set up until later in the launching process (although I would suspect that applicationDidFinishLaunching: should be late enough...

There definitively are some non-obvious voodoo tricks involved in getting this to work.
I posted something on this a while ago:


<http://www.cocoabuilder.com/archive/message/cocoa/2003/12/31/84618>

Let me just point out that abandoning the normal way of starting an app is a Very Bad Idea. Joar can do it, because he's an expert. There are very few situations that truly call for this, and I've never needed to do it myself in fifteen years of using NeXTSTEP and Cocoa.


-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


  • Follow-Ups:
    • Re: [NSApp mainMenu] returns nil
      • From: Steve Checkoway <email@hidden>
  • Prev by Date: Re: [NSApp mainMenu] returns nil
  • Next by Date: Re: transparent window and transparent button problems
  • Previous by thread: Re: [NSApp mainMenu] returns nil
  • Next by thread: Re: [NSApp mainMenu] returns nil
  • Index(es):
    • Date
    • Thread