title: handleGetURLEvent doesn't get called
body: <p>I'm implementing a custom URL scheme for one of my apps and can't get it to work.</p>
  
  <p>I added these lines to my Info.plist:</p>
  
  <pre><code>&lt;key&gt;CFBundleURLTypes&lt;/key&gt;
  &lt;array&gt;
      &lt;dict&gt;
          &lt;key&gt;CFBundleURLName&lt;/key&gt;
          &lt;string&gt;MyApp URL&lt;/string&gt;
          &lt;key&gt;CFBundleURLSchemes&lt;/key&gt;
          &lt;array&gt;
              &lt;string&gt;myscheme&lt;/string&gt;
          &lt;/array&gt;
      &lt;/dict&gt;
  &lt;/array&gt;
  </code></pre>
  
  <p>In my application delegate I install the event handler in ApplicationDidFinishedLaunching:</p>
  
  <pre><code>NSAppleEventManager *appleEventManager = [NSAppleEventManager sharedAppleEventManager];
  [appleEventManager setEventHandler:self andSelector:@selector(handleGetURLEvent:withReplyEvent:) forEventClass:kInternetEventClass andEventID:kAEGetURL];
  </code></pre>
  
  <p>but the method isn't called when I click on a link with the URL eg. "myscheme://test"</p>
  
  <pre><code>- (void)handleGetURLEvent:(NSAppleEventDescriptor *)event
             withReplyEvent:(NSAppleEventDescriptor *)replyEvent {
  
      // Extract the URL from the Apple event and handle it here.
      NSString* url = [[event paramDescriptorForKeyword:keyDirectObject] stringValue];
      NSLog(@"%@", url);
  }
  </code></pre>
  
  <p>What did I miss?</p>