• 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: Andreas Mayer <email@hidden>
  • Date: Sat, 24 Sep 2005 14:48:55 +0200


Am 24.09.2005 um 02:18 Uhr schrieb Johan Kool:






What I don't understand is how I define my own domain.






You "define" your own domain by creating an NSError for it.






What I don't understand
is how I tell the compiler that this enum belongs to my domain.






As Sherm said: The compiler doesn't need to know.

The Cocoa runtime will know about the association you made by creating the error object.


Andreas





_______________________________________________
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


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>)

  • Prev by Date: PDFView bindings disabled in Interface Builder
  • Next by Date: Delegates and multiple views
  • Previous by thread: Re: Define NSError Domain
  • Next by thread: Vertically centre text in Table Views
  • Index(es):
    • Date
    • Thread