NSObject(TruePreviewObject)


Version: @(#) $Id: TruePreview.h 17 2009-10-09 12:21:07Z jhriggs $
Extends Class: NSObject
Declared In: TruePreview.h

Discussion

Adds a method for method swizzling to NSObject instances.



Groups

Class methods

Group members:

+truePreviewAddAsCategoryToClass:
+truePreviewSwizzleMethod:withMethod:isClassMethod:

Methods

+truePreviewAddAsCategoryToClass:
+truePreviewSwizzleMethod:withMethod:isClassMethod:

truePreviewAddAsCategoryToClass:


+ (void)truePreviewAddAsCategoryToClass:(Class)inClass; 
Parameters
inClass

The Class to which this class's methods should be added.

Discussion

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; 
Parameters
inOriginalSelector

The selector specifying the method being replaced.

inReplacementSelector

The selector specifying the replacement method.

inIsClassMethod

The BOOL indicating whether or not the methods being swizzled are class methods.

Discussion

Swaps ("swizzles") two methods. Based on http://www.cocoadev.com/index.pl?MethodSwizzling.

Last Updated: Friday, October 09, 2009