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

Why do you assign all arguments to a single argument in the method invocation? #17

Open
NSExceptional opened this issue Dec 27, 2021 · 0 comments

Comments

@NSExceptional
Copy link

MRYIPC/MRYIPCCenter.m

Lines 35 to 43 in 77ea5ed

-(id)invokeWithArguments:(id)args
{
//call method:
NSMethodSignature* signature = [_target methodSignatureForSelector:_selector];
NSInvocation* invocation = [NSInvocation invocationWithMethodSignature:signature];
invocation.target = _target;
invocation.selector = _selector;
if (signature.numberOfArguments > 2)
[invocation setArgument:&args atIndex:2];

@NSExceptional NSExceptional changed the title Why do you assign all arguments to a single argument in the invocation? Why do you assign all arguments to a single argument in the method invocation? Dec 27, 2021
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

1 participant