How do you convert an iPhone OSStatus code to something useful?

前端 未结 19 1455
执念已碎
执念已碎 2020-12-05 01:45

I am getting more than a little sick of this iPhone SDK and its documentation...

I am calling AudioConverterNew

in the documentation under Returns: it says \

相关标签:
19条回答
  • 2020-12-05 02:17

    OSStatus errors can be bytes representing a 4-char code, or any number of errors defined in MacErrors.h.

    If an OSStatus error is 0 or noErr that means you have no error.

    Or, try looking up your error number in MacErrors.h:

    http://www.opensource.apple.com/source/CarbonHeaders/CarbonHeaders-18.1/MacErrors.h

    0 讨论(0)
提交回复
热议问题