Does the respondsToSelector method have to exist?
Posted
by John Smith
on Stack Overflow
See other posts from Stack Overflow
or by John Smith
Published on 2010-04-18T05:34:17Z
Indexed on
2010/04/18
5:43 UTC
Read the original article
Hit count: 145
objective-c
|cocoa
Does a method which I check for with respondsToSelector have to actually exist?
What if I only define it in the interface part and fail to implement it? I'm looking at a poor-man's virtual function in Objective-C.
© Stack Overflow or respective owner