title: How to add an observer to NSNotificationCenter in a C++ class using Objective-C++?
body: <p>I have a C++ class that I recently renamed from *.cpp to *.mm to support objective-c. So I can add the following objective-c code.</p>
  <pre><code>[[NSNotificationCenter defaultCenter] addObserver:self
                                               selector:@selector(notificationHandler:) 
                                                   name:@&quot;notify&quot;
                                                 object:nil];
  </code></pre>
  <ul>
  <li>How do/Can I write the notificationHandler method in c++?</li>
  <li>Will setting addObserver:self property work?</li>
  </ul>