64-bit swizzling
64-bit swizzling
- Subject: 64-bit swizzling
- From: Nick Zitzmann <email@hidden>
- Date: Tue, 4 Nov 2008 13:15:05 -0700
I searched the archives and didn't see anything relevant...
Short question: How do I perform method swizzling in the 64-bit runtime?
Long question: I've got a 32-bit UB bundle. I'd like to compile that
bundle for X86-64, but the bundle uses method swizzling to work around
a bug in a third-party framework. The swizzling was done through
calling class_getInstanceMethod() and then swapping the method_types
and method_imp of the method returned.
This works fine on PPC and X86, but I'm getting "dereferencing pointer
to incomplete type" errors on the lines attempting to alter the
methods when building for X86-64. So I'm guessing the method I'm using
above is not present in the 64-bit runtime, but what is its replacement?
Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden