• 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
Questions about NSError
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Questions about NSError


  • Subject: Questions about NSError
  • From: Joakim Danielson <email@hidden>
  • Date: Fri, 28 Jan 2005 12:35:22 +0100

Hi

I'm looking into a way to improve error handling in my application. I will base it on key-value validation so I can use it both via bindings and my persistence layer. Before starting I have some questions about the NSError class.

What is the purpose of the domain and code attributes and more specifically, what is (if there is any) the connection between them and the error messages I create?

Should I create different domains for different codes? Is there any advantage with this?

Any good articles or example code for this?

Joakim

PS
I have read up on key-value validation and the NSError class. I have also checked the archives, googled and looked in my cocoa books but this doesn't seem to be the most popular subject :-)
DS


_______________________________________________
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


  • Prev by Date: Interface Builder and text fields
  • Next by Date: Re: NSDocument/NSSavePanel and controlling filenames
  • Previous by thread: Re: Interface Builder and text fields
  • Next by thread: using 'cp' with NSTask
  • Index(es):
    • Date
    • Thread