I\'d like to test whether an object has a writeable @property in the iPhone SDK.
One possible way of doing this is to check the -valueForKey: method, but that seems rat
The try/catch approach you propose in your question is the only reliable way of knowing whether valueForKey: will throw an exception.
valueForKey:
@try { id *value = [instance valueForKey:@"myProperty"]; } @catch (NSException * e) { // Key did not exist }