About This
I am Michael Tyson, and I run A Tasty Pixel. I write on a variety of technology and software development topics as I travel around Europe in a motorhome.
-
Subscribe to updates 203 feed subscribers
Follow me on Twitter 367 followers
Newsletter
Let us keep you informed about important updates, special offers, and new products. Just type in your email address below and hit enter to sign up!
My Products
Popular Posts
- "Elegant Grunge" Wordpress theme
- Using RemoteIO audio unit
- Custom Permalinks
- Connecting an iMac up to your TV
- Smart 404 for Wordpress
- UIImage, resolution independence and the iPhone 4's Retina display
- Flickrpress: Wordpress Flickr widget
- Easy rounded corners on UITableViewCell image view
- Making UIToolbar and UINavigationBar's background totally transparent
- Sort your Flickr photostream
Understanding error codes
Just in case there’s someone else that didn’t know this, when one gets an error code from one of the iPhone/OS X SDKs with no other information available, it can usually be looked up in the MacErrors.h header. Just open a terminal, type:
open -h MacErrors.h
Then do a search for your error code and you’ll hopefully find a corresponding macro name that gives some indication of what went wrong.
Failing that, if you have an inkling of where the error occurred (eg. the AudioToolbox framework), then you can often find the error defined within the framework’s headers:
That was, type in Terminal grep -r 'the error code', then drag the framework straight from XCode into the Terminal, where the path will be inserted.
Related posts