Re: App won't get to my code in Lion
Re: App won't get to my code in Lion
- Subject: Re: App won't get to my code in Lion
- From: John Nairn <email@hidden>
- Date: Mon, 25 Jul 2011 23:27:43 -0700
>> My app won't start at all in Lion. I always thought the first code will be in
>> - (void)applicationWillFinishLaunching:(NSNotification *)aNotification
>
> Not necessarily. For instance, if you have -awakeFromNib methods in objects in your main nib, those will run earlier.
>
>> but that code is never reached. So I am a loss of how to fix it.
>
> What happens if you run the app from Xcode? Does it report a crash? What’s the stack look like?
> If that doesn’t give you useful info, try adding a breakpoint on exceptions (search the docs for details on how).
>
> —Jens
My MainMenu.nib doesn't have an -awakeFromNib. The MainMenu.nib does create my AppController.m that has an +initialize method but that does not execute either.
After linking, the Xcode console reports
Loading program into debugger…
Program loaded.
run
[Switching to process 7184]
Running…
and then nothing happens (no code, no crash, etc).
I tried setting breakpoint on objc_exception_throw as explained in
http://www.corbinstreehouse.com/blog/2008/08/your-most-important-breakpoint-in-cocoa/
but no break appears in the above start up procedure either.
------------
John Nairn
http://www.geditcom.com
Genealogy Software for the Mac
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden