On Thu, Dec 16, 2010 at 12:41 PM, jonat...@mugginsoft.com
<jonat...@mugginsoft.com> 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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to