SEL performSelector and arguments

Posted by madmik3 on Stack Overflow See other posts from Stack Overflow or by madmik3
Published on 2010-04-26T19:12:19Z Indexed on 2010/04/26 19:23 UTC
Read the original article Hit count: 169

Filed under:
|
|

Hello,

It seems like there should be an easy way to call a selector with some arguments when all you have is a SEL object. I can't seem to find the correct syntax.

-(MyClass*) init: (SEL)sel owner:(NSObject*) parent
{
   int i =10;
   [parent performSelector:sel:i  ];
}

© Stack Overflow or respective owner

Related posts about objective-c

Related posts about iphone