In article <clund-50F2A4.12443709092003amstwist00.chello.com>, C Lund wrote:
> Assuming the following declarations:
> SEL selectorName;
> -(void)aCoordi:(int)iCoord j:(int)jCoord;
> -(void)bCoordi:(int)iCoord j:(int)jCoord;
> -(void)cCoordi:(int)iCoord j:(int)jCoord;
> And the above are called by:
> [self performSelector:selectorName];
> Is there any way to pass iCoord and jCoord through the selector or
> would I have to make iCoord and jCoord global (within the class)? I
> suspect the latter, but I'm asking just in case it can be done.
Yes - either use an NSInvocation to perform the call, or call objc_msgSend()
directly. NSInvocation is the 'official' way to ...