title: Observation of User Defaults when changed in a Today Extension
body: <p>I'm developing an radio player app which can play a couple of streams. This app has a today extension which shares some data over user defaults by using an App Group "com.myname.myapp". Now I would be informed whenever the user data are changing. Changes can come from the containing app and from the today extension. I added an observer in the container app to observe the <code>NSUserDefaultDidChangeNotification</code>. </p>
  
  <pre><code>NSNotificationCenter *center = [NSNotificationCenter defaultCenter];
  [center addObserver:self
             selector:@selector(defaultsChanged:)  
                 name:NSUserDefaultsDidChangeNotification
               object:nil];
  
  - (void)defaultsChanged:(NSNotification *)notification {
      // do the needful
  }
  </code></pre>
  
  <p>The method is called whenever I make changes in the app itself but not when the same chages was made in the extension.</p>
  
  <p>Do you have an idea whats is going wrong and what needs to be done to get a notification in the containing app when the extension changes user defaults? Unfortunately there is no direct way to tell the container app that the user was changing something. Thanks!</p>