• 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: App Will Not Terminate After Uncaught Excpetion
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: App Will Not Terminate After Uncaught Excpetion


  • Subject: Re: App Will Not Terminate After Uncaught Excpetion
  • From: Kyle Sluder <email@hidden>
  • Date: Thu, 16 Dec 2010 13:13:02 -0800

On Thu, Dec 16, 2010 at 12:41 PM, email@hidden
<email@hidden> wrote:
> This is something that has had me scratching my upper organ casing too.
> The NSApplication docs state that NSApplicationMain is functionally similar to:
>
> void NSApplicationMain(int argc, char *argv[]) {
>    [NSApplication sharedApplication];
>    [NSBundle loadNibNamed:@"myMain" owner:NSApp];
>    [NSApp run];
> }
>
> Presumably it is more functionally similar to:
>
> void NSApplicationMain(int argc, char *argv[]) {
>    [NSApplication sharedApplication];
>    [NSBundle loadNibNamed:@"myMain" owner:NSApp];
>
>   while(YES) {
>
>       @try {
>           [NSApp run];
>           return;
>       } @catch (NSException *e) {
>           [NSApp reportException:e]
>       }
>
>    }
> }

Look up NSExceptionHandler.

http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/Exceptions/Tasks/ControllingAppResponse.html

--Kyle Sluder
_______________________________________________

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

  • Follow-Ups:
    • Re: App Will Not Terminate After Uncaught Excpetion
      • From: Andreas Grosam <email@hidden>
    • Re: App Will Not Terminate After Uncaught Excpetion
      • From: Dave Keck <email@hidden>
References: 
 >App Will Not Terminate After Uncaught Excpetion (From: Andreas Grosam <email@hidden>)
 >Re: App Will Not Terminate After Uncaught Excpetion (From: Nick Zitzmann <email@hidden>)
 >Re: App Will Not Terminate After Uncaught Excpetion (From: Jean-Daniel Dupas <email@hidden>)
 >Re: App Will Not Terminate After Uncaught Excpetion (From: Nick Zitzmann <email@hidden>)
 >Re: App Will Not Terminate After Uncaught Excpetion (From: Andreas Grosam <email@hidden>)
 >Re: App Will Not Terminate After Uncaught Excpetion (From: "email@hidden" <email@hidden>)

  • Prev by Date: Re: Layer hosting views, geometryFlipped, and subviews
  • Next by Date: NSSlider Mouse Up
  • Previous by thread: Re: App Will Not Terminate After Uncaught Excpetion
  • Next by thread: Re: App Will Not Terminate After Uncaught Excpetion
  • Index(es):
    • Date
    • Thread