• 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: Seeking a graceful way to end a program
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Seeking a graceful way to end a program


  • Subject: Re: Seeking a graceful way to end a program
  • From: Barry Skidmore <email@hidden>
  • Date: Thu, 29 Apr 2010 12:00:31 -0700

Cocoa design patterns will help with many programmatic decisions such as this and has example code throughout.

http://www.amazon.com/Cocoa-Design-Patterns-Erik-Buck/dp/0321535022
Sent from my iPhone

On Apr 29, 2010, at 11:52 AM, Abhinay Kartik Reddyreddy <email@hidden > wrote:


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 guess if you cannot create a critical resource you should notify the user (show an alert) about why your app is going to terminate, save whatever is relevant and quit the app.
If a critical resource does not exist ( should we call it a graceful launch ;-) ). I guess you do the same......notify user and abort launch.


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.

Hmmmm may be you could find some thing in books related to proper software design....


_______________________________________________

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

_______________________________________________

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
_______________________________________________

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


References: 
 >Seeking a graceful way to end a program (From: Paul Johnson <email@hidden>)
 >Re: Seeking a graceful way to end a program (From: Abhinay Kartik Reddyreddy <email@hidden>)

  • Prev by Date: Re: Loading PersistentDocuments into the same window
  • Next by Date: Re: Matching the style of a HUD?
  • Previous by thread: Re: Seeking a graceful way to end a program
  • Next by thread: Help with text input
  • Index(es):
    • Date
    • Thread