How do SEL and @select work in iphone sdk?
Posted
by BlueDolphin
on Stack Overflow
See other posts from Stack Overflow
or by BlueDolphin
Published on 2008-11-18T02:25:27Z
Indexed on
2010/05/15
11:04 UTC
Read the original article
Hit count: 191
objective-c
I have one sample code which get SEL from current object,
SEL callback = @selector(mymethod:parameter2);
And I have method like -(void)mymethod:(id)v1 parameter2;(NSString*)v2 { }
Now I need to move mymethod to another object, say myDelegate.
I have tried: SEL callback = @selector(myDelegate, mymethod:parameter2);
but appears not compiling.
Thanks.
© Stack Overflow or respective owner