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

-[RACSubscribable(Operations) select:] conflicts w/ existing UIKit method #12

Closed
jonsterling opened this issue Jun 12, 2012 · 2 comments
Labels

Comments

@jonsterling
Copy link
Contributor

One of the consequences of Apple's unfortunate (and usually unnecessary) use of informal protocols is that under UIKit, the NSObject(UIResponderStandardEditActions) category pollutes nearly the entire object namespace with methods like -select:.

The result is that the compiler can't resolve the static type of a -select: message: is it (id → id) → RACSubscribable* or is it id → void? So we get a compiler warning.

This can be solved by renaming RAC's -select: method; with my background, I'd of course suggest -map:, but that would be somewhat non-conformant with the LINQ-inspired scheme you guys have going (as well as the Smalltalk heritage of Objective-C)...

@jonsterling
Copy link
Contributor Author

Incidentally, the way to reproduce the compiler error is to try writing a category on RACSubscribable and send -select: to self, or try sending -select: to an object statically typed id.

@jspahrsummers
Copy link
Member

This was addressed as part of #92. select: is now known as map:.

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

No branches or pull requests

2 participants