Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Key-value coding (KVC) is a mechanism that allows you to set and get the value of a variable by its name. The name is simply a string, but we refer to that name as a key. So, for example, imagine that you have a class called Student that has an instance variable called firstName of type NSString:
@interface Student : NSObject
{
NSString *firstName;
}
...
@ends