Aspects icon indicating copy to clipboard operation
Aspects copied to clipboard

Problem with NSProxy subclasses

Open iamredeye opened this issue 11 years ago • 3 comments

Hi there,

I have an application with a class named DynamicUIWebViewDelegate that I want to put hooks on some methods of it. The problem is that class is a subclass of NSProxy so when I add the hooker I have an exception at runtime :

[DynamicUIWebViewDelegate aspect_hookSelector:withOptions:usingBlock:error:]: unrecognized selector sent to class

How could I react to solve this issue ?

Thanks Peter

iamredeye avatar Dec 11 '14 09:12 iamredeye

That might be hard; as we use runtime forwarding internally as well. does it work on the 1.5 branch?

steipete avatar Dec 11 '14 09:12 steipete

Nope.

iamredeye avatar Dec 11 '14 10:12 iamredeye

Not having any plans to add special code, but if you find an elegant solution, I'm curious.

steipete avatar Dec 11 '14 10:12 steipete