Tuesday, August 24, 2010

Convert OSStatus to a human readable string

It's actually fairly easy to get something useful / readable out of an OSStatus code. This is a simple no-compilation Python script to convert an error code to it's description.  It uses "two poorly documented but very usefull functions"GetMacOSStatusErrorString and GetMacOSStatusCommentString.

Example output:


And the script:

No comments:

Post a Comment