Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Decoding OSStatus values




On Oct 15, 2008, at 7:49 AM, Richard Dearlove wrote:

Is there an easy way to decode the values from OSStatus. I have this #define that I copied from another project but it isnt really helping..

This gives me an error such as 	Error: \316\377\377\377

#define checkStatus( err) \
if(err) {\
printf("Error: %s ->  %s: %d\n", (char *)&err,__FILE__, __LINE__);\
fflush(stdout);\
return err; \
}

cheers
RD

Also see this:

open -h MacErrors.h

-Peter

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >Decoding OSStatus values (From: Richard Dearlove <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.