An NSObject category that uses reflection to display details about arbitrary objects.
Nothing fancy here, just add the sources to your project and go.
To use this code, you must do two things:
-
#import "NSObject+Inspect.h"
. -
Call
inspect
on whatever object you are interested in. You can also pass an object toinspect
, if you'd like to inspect something that is not itself derived fromNSObject
.
None known. Note that this does not mean that none exist.
Why create this category?
Curiosity mostly, and to become more familiar with Objective-C and the iOS SDK. This was a learning-experience for me more than anything else. Also, reflection is just plain cool.
Why should I use this library?
Use this code if you're curious about your runtime environment and you want to do a bit of poking around. It's handy for discovering internal/undocumented API's, for one thing.
Why should I NOT use this library?
If you're trying to do anything practical, this code will not help you.
What are your license terms?
Use this code if you want, otherwise don't. That's it.