• 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: Jean-Daniel Dupas <email@hidden>
  • Date: Tue, 22 Jul 2008 00:02:54 +0200


Le 21 juil. 08 à 21:29, vertilab email a écrit :



No; where did you get that idea from? MacErrors.h still defines the  
error numbers in the Carbon error domain. Nothing's changed about  
that. The documentation you linked to just documents the new CFError  
API, which is equivalent to NSError but now available with a  
CoreFoundation API. This provides a way to return more detailed error  
information, but it in no way obsoletes any particular error domain or  
its error codes.

—Jen

The MacErrors.h that came with the latest developer distribution contains
the following (and only the following):

#include <CoreServices/CoreServices.h>

I went looking for the meaning of an OSStatus error code the other day, and
couldn't find it - I had to use the CFError API instead. 

I never said that any particular error domain or its error codes has been 
obsoleted, only that being able to glance at MacErrors.h to find the meaning 
of an error code is no longer feasible. If I'm wrong, where did all of the 
OSStatus error #defines run off to?

What about
- macerror (see man macerror)

and 
const char *GetMacOSStatusErrorString(OSStatus err);
const char *GetMacOSStatusCommentString(OSStatus err);

from (CoreServices/CarbonCore/Debugging.h)


 _______________________________________________
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

References: 
 >Re: Error codes (From: vertilab email <email@hidden>)

  • Prev by Date: Re: Fdopen
  • Next by Date: build wants "sdk file"
  • Previous by thread: Re: Error codes
  • Next by thread: Re: Error codes
  • Index(es):
    • Date
    • Thread