• 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 under 10.4.3
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [NSApp mainMenu] returns nil under 10.4.3


  • Subject: Re: [NSApp mainMenu] returns nil under 10.4.3
  • From: Alex Fischer <email@hidden>
  • Date: Tue, 29 Nov 2005 09:34:43 +0100


Alexander Fischer Basasoft, S.L.

c/ Bahía de Cadiz, 65 / 2º D
28042 Madrid

www.basasoft.com
email@hidden



On Nov 29, 2005, at 9:05 , John C. Randolph wrote:


On Nov 28, 2005, at 7:04 AM, Alex Fischer wrote:

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)

As you've just discovered, that means that you can't depend on any initialization being done for you.


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?

Since you're not using a .nib file, how do you expect the "mainMenu" outlet to ever get connected?


I have no idea why it works on 10.4.2. That's probably a bug.

Well, as it has always worked for me, I just thought that sending "sharedApplication" or "run" to NSApp was setting up the NSMenu object returned by "mainMenu".

In any case thank you for your help

-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 under 10.4.3
      • From: j o a r <email@hidden>
References: 
 >[NSApp mainMenu] returns nil under 10.4.3 (From: Alex Fischer <email@hidden>)
 >Re: [NSApp mainMenu] returns nil under 10.4.3 (From: "John C. Randolph" <email@hidden>)

  • Prev by Date: Re: Tree Data Structure in objc-C?
  • Next by Date: Re: [NSApp mainMenu] returns nil
  • Previous by thread: Re: [NSApp mainMenu] returns nil under 10.4.3
  • Next by thread: Re: [NSApp mainMenu] returns nil under 10.4.3
  • Index(es):
    • Date
    • Thread