Re: More Mac like handling of OS raised exceptions
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