Re: NSInvocation's getArgument & setReurnValue question

2013-04-20 Thread Ken Thomases
On Apr 18, 2013, at 2:27 AM, Christ Levesque wrote: > I used - getArgument:atIndex: method but it gives me error. I don't know > what's the problem. I used this as below: > > if ([component isEqualToString: @"class"]) { >1) id arg; >2) [invocation getArgument: &arg atIndex: i + 2]; >

NSInvocation's getArgument & setReurnValue question

2013-04-19 Thread Christ Levesque
Hi there, I used - getArgument:atIndex: method but it gives me error. I don't know what's the problem. I used this as below: if ([component isEqualToString: @"class"]) { 1) id arg; 2) [invocation getArgument: &arg atIndex: i + 2]; 3) [self class:arg]; } The error is this: NSInvocati