Re: Seeking a graceful way to end a program
Re: Seeking a graceful way to end a program
- Subject: Re: Seeking a graceful way to end a program
- From: Markus Spoettl <email@hidden>
- Date: Thu, 29 Apr 2010 14:46:59 -0400
On Apr 29, 2010, at 2:31 PM, Paul Johnson wrote:
> I would like to have some guidance on the proper way to 'gracefully'
> terminate a program that cannot proceed, for example, when some
> critical resource can't be created or doesn't exist.
>
> I've look through all my reference books and searched the internet for
> sample code but have come up empty handed. Thanks for your assistance.
[NSApplication sharedApplication] terminate:nil];
should work, no?
Markus
--
__________________________________________
Markus Spoettl
_______________________________________________
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