なぜpreparewithinvocationTarget:nsundomanagerに固有のものですか?
-
26-09-2019 - |
質問
比較...
NSInvocation* invocation = [NSInvocation invocationWithMethodSignature:[performer methodSignatureForSelector:@selector(playFile:)]];
[invocation setSelector:@selector(playFile:)];
[invocation setTarget:performer];
NSString* string = [NSString stringWithString:@"reverse.wav"];
[invocation setArgument:&string atIndex:2];
...と...
NSInvocation* invocation = [[NSInvocation prepareWithTarget:performer] playFile:@"reverse.wav"];
. 。なぜそのような方法が実装されていないのですか?
解決
そうではありませんが、同じ機能のサードパーティの実装が不足していません。 愛のあるココア.
所属していません StackOverflow