iOS and OS X method redefinitions at runtime