Skip to content

Instantly share code, notes, and snippets.

View HaikuJock's full-sized avatar

Jock Findlay HaikuJock

View GitHub Profile
@hollance
hollance / NSObject+MHOverride.h
Created July 18, 2012 21:01
Overriding methods without making a subclass
@interface NSObject (MHOverride)
/*
* Dynamically overrides the specified method on this particular instance.
*
* The block's parameters and return type must match those of the method you
* are overriding. However, the first parameter is always "id _self", which
* points to the object itself.
*