title: Add to the "Open Recent" menu an item that doesn't point to a file
body: <p><strong>Is there a way to add an item <em>that doesn't point to a file that exists on the file system</em> to the "Open Recent" menu?</strong></p>
  
  <p>In an application not based on NSDocument, I can add an item to the "Open Recent" submenu with the following code:</p>
  
  <pre><code>[[NSDocumentController sharedDocumentController] noteNewRecentDocumentURL:[NSURL URLWithString:stringToFilePath]];
  </code></pre>
  
  <p>It works as <a href="http://developer.apple.com/mac/library/documentation/Cocoa/Reference/ApplicationKit/Classes/NSDocumentController_Class/Reference/Reference.html#//apple_ref/occ/instm/NSDocumentController/noteNewRecentDocumentURL:" rel="noreferrer">documented</a>, as long as the URL points to a file that exists on the file system.</p>
  
  <p>If the url doesn't point to a file on the system, such as a web url, or a custom url scheme, nothing happens.</p>
  
  <p>For example, this code has no effect, and produce no log during execution, even if my app handles the scheme used in the URL:</p>
  
  <pre><code>[[NSDocumentController sharedDocumentController] noteNewRecentDocumentURL:[NSURL URLWithString:@"http://www.stackoverflow.com"]];
  </code></pre>
  
  <p><strong>Update:</strong> someone found (a long time ago) a way to tweak this menu to have it show files whether they exist or not: <a href="http://lists.apple.com/archives/cocoa-dev/2007/Apr/msg00651.html" rel="noreferrer">http://lists.apple.com/archives/cocoa-dev/2007/Apr/msg00651.html</a></p>
  
  <p>I successfully managed to subclass NSDocumentController, but my override of the method - (NSArray *)recentDocumentURLs is never called.</p>
  
  <p>It's not very surprising, as the doc says: </p>
  
  <blockquote>
    <p>This method is not a good one to
    override since the internals of
    NSDocumentController do not generally
    use it.</p>
  </blockquote>
  
  <p>But the doc doesn't say what to use instead and the poster didn't give more detail. Any idea?</p>
  
  <hr>
  
  <p>If there is no solution, on workaround would be to rewrite the entire menu from scratch.
  If possible, I would prefer to avoid that, for all the stuff I get for free (like when you have two items with the same name, it displays the parent directory as well to help differentiate them).</p>