title: How to create a class to send and receive events through NSNotificationCenter in Objective-C?
body: <p>I need to create two classes and both should be able to send and receive the events through the NSNotificationCenter methods.ie Both should have the sendEvent and receiveEvent methods:</p>
  
  <pre><code>      @implementation Class A
  -(void)sendEvent
  {
      addObserver:---  name:---- object:---
  }
  
  -(void)ReceiveEvent
  {
  postNotificationName: --- object:---
  }
  @end
  </code></pre>
  
  <p>Same as such another class say ClassB should also be able to send and receive the events. How can it be done?</p>