Key-Value code (KVC) key-value listener (KVO)
SetValue: Attribute value Forkey: Property name does not find corresponding member variable will burst exception (first method-member variable-member variable of name within Class) _ Member variable name
Valueforkey: Property name does not find the corresponding member variable will burst exception (first method-member variable-member variable of name within Class)
Method name underscore member variable member variable
Resolving exception Methods overriding Setvalue:forundefinedkey: Methods and Valueforundefinedkey: Methods
Handling nil Value Rewrite Setnilvalueforkey: Method
Processing compound type with key path Forkeypath:valueforkeypath:
Actually, it's better than performance. The KVC operation has good performance without getter and setter methods. Just KVC simple operation. It can refine the universal code.
KVO (key value observing) key-value monitoring
Registration method AddObserver:forKeyPath:option:context;
Delete method: Removerobserver:forkeypath and RemoverObserver:forKeyPath:context:
ObserValueForKeyPath:ofObject:change:context is called: you need to override the modification method to change the state when used for callbacks.
Object-oriented 1