Post

Converting OSStatus to plain text

Just a small snippet so I don't forget. Here's how you convert an OSStatus to plain text:

1
2
OSStatus x = AudioSessionSetActive(true);
NSError *error = [NSError errorWithDomain:NSOSStatusErrorDomain code:x userInfo:nil];
This post is licensed under CC BY 4.0 by the author.