I am a long time Microsoft developer and I am new to iPhone development using Xcode. So, I am reading a book and going through examples trying to teach myself how to write
What you did is not a compile-time error, because the Objective-C runtime checks at runtime if an object can respond to the message you send to it.
I recommend adding this build setting to your target or project:
GCC_TREAT_WARNINGS_AS_ERRORS = YES