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
-rac_signalForSelector:fromProtocol: #606
Comments
In addition, the simple form of |
I'd rather the behavior be more predictable. If we wanted to get crazy, we could use I think this variant will cover most use cases in a very explicit way. |
When a protocol method has non-object arguments, how will
I don't know |
Not sure what you mean here. |
Haha, would you believe I wrote that a couple ways before settling on that? I blame the time of night. Let's try it this way: Could there be an "ABI mismatch" from what the caller sets up, to what |
@jspahrsummers I wrote a test to explore what I described above, and the results were interesting to me. I assumed that the For illustration, let's say Next, given an instance of Later, a call to |
In conclusion, the signature we declare matters little, it's the signature the caller uses that matters. |
Yep, exactly. This is why the compiler needs to see a prototype of the method before it can send the message – otherwise, the way it casts |
This would add the ability to create signals for undefined selectors that accept non-object arguments (the current limitation of #590), like some delegate methods.
The text was updated successfully, but these errors were encountered: