Revision: 11012
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at January 21, 2009 04:11 by 0xced
Initial Code
Method myReplacementMethod = class_getClassMethod([MyClass class], @selector(myReplacementMethod)); Method windowDealloc = class_getInstanceMethod([NSWindow class], @selector(dealloc)); method_exchangeImplementations(myReplacementMethod, windowDealloc);
Initial URL
Initial Description
Method swizzling in Objective-C 2.0, from http://cocoawithlove.com/2008/03/supersequent-implementation.html
Initial Title
Method swizzling
Initial Tags
Initial Language
Objective C