Let\'s say in Apple API version 1.0, there is a class NSFoo with a property \'color\'. API 1.1 adds property \'size\'.
I want to know whether I can use the getter: myFo
You're close. Your selector should be exactly the message you want to send to the object:
if ( [myFoo respondsToSelector:@selector(size)] ) { int size = [myFoo size]; // or myFoo.size in dot-notation. // ... }
should work.