Re: Define NSError Domain
Re: Define NSError Domain
- Subject: Re: Define NSError Domain
- From: Johan Kool <email@hidden>
- Date: Sat, 24 Sep 2005 02:19:47 +0100
On 9/24/05, Sherm Pendley <email@hidden> wrote:
> I don't understand the question. What do you mean by "define"?
Hi Sherm,
Sorry, I'll try to explain it a bit more. As I understand it the error
codes are specified within a domain. I understand this domain is an
string (the backwards internet domain preferably). I also understand
that I should put my error codes in an enum. What I don't understand
is how I tell the compiler that this enum belongs to my domain.
Shouldn't it know this to differentiate between errors that have the
same code?
In one question: How do I associated my self defined error codes with
my self defined domain?
Probably just plain C basic stuff, but sometimes I find C more
difficult to grasp than Cocoa itself. :-)
Thanks a lot!
Johan
_______________________________________________
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