How do you tell if a key exists for an object using Key-Value Coding?
If you are creating the object that is being checked, you could override valueForUndefinedKey: and setValue:forUndefinedKey to do something more useful than raising an exception. If, on the other hand, you are trying to introspect objects you don’t know about at runtime, you will have to use the runtime methods to do that. You can … Read more