Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with NSProxy subclasses #35

Open
iamredeye opened this issue Dec 11, 2014 · 3 comments
Open

Problem with NSProxy subclasses #35

iamredeye opened this issue Dec 11, 2014 · 3 comments

Comments

@iamredeye
Copy link

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

@steipete
Copy link
Owner

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

@iamredeye
Copy link
Author

Nope.

@steipete
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants