, . , , ( [NSOperation][1] Grand Central Dispatch: ).
, , ?
:
[NSThread detachNewThreadSelector: @selector(blah:) toTarget: obj withObject: arg]
:
[NSThread detachNewThreadSelector: @selector(invokeBlah:) toTarget: self withObject: dict]
- (void)invokeBlah: (id)dict {
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
id obj = [dict objectForKey: @"target"];
id arg = [dict objectForKey: @"argument"];
[obj blah: arg];
[pool release];
}
, NSInvocation, . , SO. .
user23743