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

[NSApp mainMenu] returns nil under 10.4.3


  • Subject: [NSApp mainMenu] returns nil under 10.4.3
  • From: Alex Fischer <email@hidden>
  • Date: Mon, 28 Nov 2005 10:48:02 +0100

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) with the following main() function:

int main(int argc, char *argv[])
{

NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init];

[NSApplication sharedApplication];

[NSApp setDelegate: [myAppDelegate new]];

[NSApp run];

[pool release];

return 0;
}

"myAppDelegate" is a custom class that implements the "applicationWillFinishLaunching" delegate method.

Until (included 10.4.2), running that app, created a menu-bar with a working application menu, that included the usual menu items including "Quit".
Under 10.4.3 only the menu-bar with the app name shows up but clicking on it does not unfold the menu.

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?

Thanks for your help.

Alexander Fischer



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users 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: James Bucanek <email@hidden>
  • Prev by Date: Re: Cannot link project checkedout from an SVN repository
  • Next by Date: Re: Target setup for unit testing (using cppunit)
  • Previous by thread: Re: Stepping over inline functions
  • Next by thread: Re: [NSApp mainMenu] returns nil under 10.4.3
  • Index(es):
    • Date
    • Thread