0

比較...

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"];

。なぜそのようなメソッドが実装されていないのですか?

4

1 に答える 1

2

そうではありませんが、Cocoa with Loveで作成され、 Cocoa with Love用に作成されたものなど、同じ機能のサードパーティ実装が不足することはありません。

于 2010-10-27T17:20:29.547 に答える