2 ms·
> One thing though, if you spell a method name wrong, it will still compile. It's only a warning that "the object may not respond to that selector". And it's i
by masklinn 15y ago
> One thing though, if you spell a method name wrong, it will still compile. It's only a warning that "the object may not respond to that selector".
And it's important to understand that: while Objective-C's "C" part is statically typed, Objective-C's objective model comes from Smalltalk and remains essentially dynamically typed. That's in fact what `id` is: a purely dynamic type. This is quite unlike Java or OCaml.