title: Send Notification When a Property is Changed Using KVO
body: <p>I had a property named <code>myName</code> in my class, like:</p>
  
  <pre><code>@property (nonatomic, strong) NSString *myName;
  </code></pre>
  
  <p>I need to send a notification when the <code>myName</code> property's value is changed.</p>
  
  <p>Now I'm doing something like:</p>
  
  <pre><code>- (void)setMyName:(NSString *)name
  {
    _myName = name;
    [[NSNotificationCenter defaultCenter] postNotificationName:CHANGE_NOTIFICATION object:nil];
  }
  </code></pre>
  
  <p>I know there is something like <a href="http://developer.apple.com/library/ios/#documentation/cocoa/conceptual/KeyValueObserving/Articles/KVOCompliance.html"><strong>Key-Value Observing</strong></a> in iOS. But I don't know how to implement it, I read the entire document, but couldn't get a good understanding.</p>
  
  <p>Please help me to understand how to implement the same without using custom setter.</p>