Is there a way to encode iPhone keywords to check if the class will accept the given key?
That is, without using the valueForUndefinedKey: or setValue: forUndefinedKey: method for the target class, I want to be able to do something like this:
if ([targetObject knowsAboutKey: key]) { [targetObject setValue: value forKey: key]; }
iphone key-value-coding
William Jockusch
source share