• 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: Error codes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Error codes


  • Subject: Re: Error codes
  • From: vertilab email <email@hidden>
  • Date: Mon, 21 Jul 2008 08:54:09 -0400



MacErrors.h
QuickTimeErrors.h

<sys/errno.h> for Unix error codes.

In general, negative numbers under a few thousand are Carbon errors  
and will be in MacErrors.h. Small positive numbers (1 to 50 or so) are  
Unix errors in <sys/errno.h>. Cocoa and CoreFoundation often use error  
structs or objects with different 'domains' each with their own set of  
error codes, which will be declared in the same header as the API that  
generates them.


As of Leopard, MacErrors.h is no longer informative. Instead, you have to use the 
new Core Foundation Error functions to retrieve a descriptive string for a
particular error code associated with an error domain.

See http://developer.apple.com/documentation/CoreFoundation/Reference/CFErrorRef/CFErrorRef.pdf.

Interestingly, QuickTimeErrors.h is still informative. I assume that in some future
release a new QuickTime error domain will be created, and then QuickTimeErrors.h
will cease to be informative, too.

- Steve
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: Problem compiling first Cocoa app in Xcode 3.1
  • Next by Date: Argument list too long
  • Previous by thread: Re: Error codes
  • Next by thread: Re: Error codes
  • Index(es):
    • Date
    • Thread