-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Infinite Loop when overriding a method at two points which includes a call to super #2
Comments
Thanks for the report Dave! I might just opt for blocking this for the first version, don't see a way to get the IMP out of the NSInvocation. (https://twitter.com/davedelong/status/462834335528124417) |
…lector within the class hierarchy. This is a workaround #2.
For future reference. We now keep track of what has been modified and simply disallow hooking into the same method within a subclass hierarchy. In the above example, hook B will work, and hook A will return nil. If you reverse, hook A will work, and hook B will return nil. |
I have a hard time following this... can somebody explain in 5 bullets what's going on here? Why doesn't A's foo get called? |
This will infinitely loop:
The text was updated successfully, but these errors were encountered: