I am try to automatically assign the attribute value. I need to assign value for class attribute like bellow,
@property (nonatomic,retain)NSString *nid;
....
[self setValue:value forKey:@"nid"];
instead of,
[self setNid:value];
Problem i can’t find method for handle the undefined key in my class. In NSDictionary have method for this,
[[dictionry allKeys]containsObject:@"nid"];
Is there any method similar to this handle my problem.
I am not sure if it what you mean, but the NSKeyValueCoding Protocol Reference knows the function
It is called in case of an unknown key in KVC.