• 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: More Mac like handling of OS raised exceptions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: More Mac like handling of OS raised exceptions


  • Subject: Re: More Mac like handling of OS raised exceptions
  • From: Shawn Erickson <email@hidden>
  • Date: Tue, 16 May 2006 07:46:47 -0700


On May 15, 2006, at 11:16 PM, Lon Giese wrote:

It all just seems to me like if the user types the wrong thing in a text field you say he's insane and crash the app cause he cant even type. It's just not mac like.

What does this have to do with your file parser causing a crash in your application because it is making unsafe decisions when reading a file that you appear to have no control over format wise and files that appear to have a low level of internal consistency? That type of situation scream for a robust parser.


You have the power in your code to detect error conditions and handle them. You have the power to validate to the user input and to ensure no matter the input your application wont walk outside of allocated memory, etc. and cause a crash. You have the power to catch runtime exceptions and inform the user, etc......

-Shawn
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Fwd: More Mac like handling of OS raised exceptions (From: Lon Giese <email@hidden>)

  • Prev by Date: Re: More Mac like handling of OS raised exceptions
  • Next by Date: Re: Thumbnail hints
  • Previous by thread: Re: More Mac like handling of OS raised exceptions
  • Next by thread: Fwd: More Mac like handling of OS raised exceptions
  • Index(es):
    • Date
    • Thread