I have the following code fragment:
NSString* value = @\"value\"; NSString* key = @\"key\"; NSMutableDictionary* foo = [NSMutableDictionary dictionary]; NSDictio
It's pretty simple actually, all you need to do is test against the member of the class, like this:
if ([bar isMemberOfClass:[NSMutableDictionary class]]){ [bar setValue:value forKey: key]; }
iPhone SDK difference between isKindOfClass and isMemberOfClass