Recently I mentioned an Xcode plugin for visualizing autoresize masks from Denis Lebedev.
Here’s another interesting open source project from Denis Lebedev that provides an NSObject category wrapping enhancing the print object command for when you’re using the LLDB console.
The enhanced print object command displays the instance variables, methods, protocols used by a provided Objective-C class.
You can even display return types and arguments (in most cases).
Here’s an example from the Readme showing example console output displaying the properties of the UIDevice class:
@property (nonatomic, copy) @? afterAppearanceBlock,
…
@property (nonatomic, assign) {CGSize=ff} contentSizeForViewInPopover,
@property (nonatomic, assign, getter=isInAnimatedVCTransition) BOOL inAnimatedVCTransition,
@property (nonatomic, assign, readonly) BOOL inExplicitAppearanceTransition
You can find DLIntrospection on Github here.
An interesting project that can be very useful if you want quick introspection of an Objective-C class.
- Objective-C Runtime Additions Allows Swizzling Without Creating A Category And More
- Online Console Allowing You To Test Out RubyMotion (Ruby For Native iOS App Development)
- Rubymotion iOS SDK Basics Beginner Tutorials
- Best Resources In iOS Development – May 14th, 2012
- Avoid Retain Cycles In Objective-C
Original article: Objective-C Category Providing Detailed Class Introspection In The LLDB Console
©2013 iOS App Dev Libraries, Controls, Tutorials, Examples and Tools. All Rights Reserved.