• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
64-bit swizzling
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Underlining text in Interface Builder
  • Next by Date: Re: Programatically Change NSMenu Title
  • Previous by thread: Re: SecKeyGeneratePair export Public Key and OpenSSL API
  • Next by thread: Re: 64-bit swizzling
  • Index(es):
    • Date
    • Thread