1.1 --- a/Frameworks/AIUtilities Framework/Source/AIObjectAdditions.m Wed May 06 17:07:28 2009 -0400
1.2 +++ b/Frameworks/AIUtilities Framework/Source/AIObjectAdditions.m Sun Nov 01 14:04:11 2009 -0500
1.3 @@ -261,6 +261,21 @@
1.4 [self performSelector:@selector(handleInvocation:) withObject:invocation];
1.5 }
1.6
1.7 +- (void)performSelector:(SEL)aSelector withObject:(id)argument1 withObject:(id)argument2 withObject:(id)argument3 withObject:(id)argument4 afterDelay:(NSTimeInterval)delay
1.8 +{
1.9 + NSInvocation *invocation;
1.10 + invocation = [NSInvocation invocationWithMethodSignature:[self methodSignatureForSelector:aSelector]];
1.11 +
1.12 + [invocation setSelector:aSelector];
1.13 + [invocation setArgument:&argument1 atIndex:2];
1.14 + [invocation setArgument:&argument2 atIndex:3];
1.15 + [invocation setArgument:&argument3 atIndex:4];
1.16 + [invocation setArgument:&argument4 atIndex:5];
1.17 + [invocation retainArguments];
1.18 +
1.19 + [self performSelector:@selector(handleInvocation:) withObject:invocation afterDelay:delay];
1.20 +}
1.21 +
1.22 - (void)handleInvocation:(NSInvocation *)anInvocation
1.23 {
1.24 [anInvocation invokeWithTarget:self];