title: didFinishLaunching is never called
body: <p>I created a new window-based project and couldn't figure out why it wasn't doing anything. Eventually I put an NSLog right after didFinishLaunching and it's never logged when I run it.  Here is all of the code I have written:</p>
  
  <pre><code>- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
  {
      NSLog(@"didFinishLaunching");
  
      // Get the device object and turn proximity monitoring on
      UIDevice *d = [UIDevice currentDevice];
      [d setProximityMonitoringEnabled:YES];
  
      // Get the NSNotificationCenter object
      NSNotificationCenter *nc = [NSNotificationCenter defaultCenter];
  
      // Sign up to receive notifications when the proximity state changes
      [nc addObserver:self selector:@selector(proximityChanged:) name:UIDeviceProximityStateDidChangeNotification object:d];
      NSLog(@"Observing...");
  
      [self.window makeKeyAndVisible];
      return YES;
  
  }
  
  - (void)proximityChanged:(NSNotification *)note {
  
      // Print out the changes of proximity state
      NSLog(@"Proximity Changed: %d", [[note object] proximityState]);
  
  }
  </code></pre>
  
  <p>That's the entirety of what I've written and nothing is logged when I run it on the simulator or on my device.  Any thoughts?</p>