The functions GetMacOSStatusErrorString and GetMacOSStatusCommentString appear to have been deprecated as of 10.8. Are there any non-deprecated replacement functions for these handy debugging functions?
You can use [NSError errorWithDomain:NSOSStatusErrorDomain code:errorCode userInfo:nil]
to get an NSError
representing the OSStatus
of errorCode
. NSError
provides the ability to get a localized error message from the error code (-localizedDescription
), or a regular unlocalized one for debugging purposes (-description
).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With