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

class method swizzle implementation & method aliasing #1

Merged
2 commits merged into from
Jan 25, 2011

Conversation

outis
Copy link
Contributor

@outis outis commented Jan 25, 2011

There are two changes here. The first implements class method swizzling in a very simple manner (call your instance method swizzling method on the meta-class). The second adds new functionality: instance & class method aliasing. This is perhaps outside the scope of JRSwizzle, but not too far outside. At the very least, it's closely related. At its best, it broadens the scope of JRSwizzle to method manipulation. Is aliasing an appropriate addition for JRSwizzle?

@rentzsch
Copy link
Owner

Pulled, thanks!

I'm unsure if aliasing is a good thing to have in JRSwizzle. What are you using it for?

@outis
Copy link
Contributor Author

outis commented Jan 30, 2011

It's used in another project, adding support for the KVC operators to NSDictionary, though it's not essential. Another option is a fork focused on method manipulation, with yet more operations. Maybe an aspect-oriented programming library.

@rentzsch
Copy link
Owner

Ah, yeah I would say it shouldn't be in JRSwizzle then. I'll pull it out when I take my next whack at the project.

This pull request was closed.
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

Successfully merging this pull request may close these issues.

None yet

2 participants