Re: Define NSError Domain
Re: Define NSError Domain
- Subject: Re: Define NSError Domain
- From: Johan Kool <email@hidden>
- Date: Sat, 24 Sep 2005 01:18:18 +0100
On 9/24/05, Andreas Mayer <email@hidden> wrote:
>
> Am 24.09.2005 um 01:52 Uhr schrieb Johan Kool:
>
> > But how do I define my own domains?
>
> From the documentation:
>
> ----
>
> + (id)errorWithDomain:(NSString *)domain code:(int)code userInfo:
> (NSDictionary *)dict
>
> Creates and initializes an NSError object for domain with the
> specified error code and the dictionary of arbitrary data userInfo.
> The domain must not be nil. The userInfo may be nil.
> ----
Thanks for your reply Andreas. I understand how to create an NSError
with a domain. What I don't understand is how I define my own domain.
Say I want to have the domain JKMyErrorDomain with my own error codes
in it. How do I define that?
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