Should I use performSelector: when I also can call the method normally?

Posted by Jan Hendrix on Stack Overflow See other posts from Stack Overflow or by Jan Hendrix
Published on 2010-04-24T11:50:13Z Indexed on 2010/04/24 11:53 UTC
Read the original article Hit count: 220

Filed under:
|
|

Hi,

I want to call a method on an object which I get through [self delegate]. I know which class it is so I can import the class and call it normally but I could also use performSelector: which doesn't require importing my class. I do not need to pass a parameter to the method. And yes, I did read this. Which one is preferable in this case?

© Stack Overflow or respective owner

Related posts about selector

Related posts about objective-c