• 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: Define NSError Domain
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Define NSError Domain
      • From: Sherm Pendley <email@hidden>
References: 
 >Define NSError Domain (From: Johan Kool <email@hidden>)
 >Re: Define NSError Domain (From: Andreas Mayer <email@hidden>)
 >Re: Define NSError Domain (From: Johan Kool <email@hidden>)
 >Re: Define NSError Domain (From: Sherm Pendley <email@hidden>)

  • Prev by Date: Re: Define NSError Domain
  • Next by Date: Re: Define NSError Domain
  • Previous by thread: Re: Define NSError Domain
  • Next by thread: Re: Define NSError Domain
  • Index(es):
    • Date
    • Thread