NSObject(TruePreviewObject) |
Version: @(#) $Id: TruePreview.h 17 2009-10-09 12:21:07Z jhriggs $
Extends Class: NSObject
Declared In: TruePreview.h
Adds a method for method swizzling to NSObject instances.
truePreviewAddAsCategoryToClass: |
+ (void)truePreviewAddAsCategoryToClass:(Class)inClass;
inClassThe Class to which this class's methods should be added.
Adds the methods from this class to the specified class. This is in essence adding a category, but we do it through the objective-c runtime, because of the "hiding" of classes in >= 10.6.
truePreviewSwizzleMethod:withMethod:isClassMethod: |
+ (void)truePreviewSwizzleMethod:(SEL)inOriginalSelector withMethod:(SEL)inReplacementSelector isClassMethod:(BOOL)inIsClassMethod;
inOriginalSelectorThe selector specifying the method being replaced.
inReplacementSelectorThe selector specifying the replacement method.
inIsClassMethodThe BOOL indicating whether or not the methods being swizzled
are class methods.
Swaps ("swizzles") two methods. Based on http://www.cocoadev.com/index.pl?MethodSwizzling.
Last Updated: Friday, October 09, 2009