• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
How do you remove an item from recentDocumentURLs?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How do you remove an item from recentDocumentURLs?


  • Subject: How do you remove an item from recentDocumentURLs?
  • From: bmaclist <email@hidden>
  • Date: Fri, 24 Sep 2010 15:44:34 -0500

If a valid document gets into my 'Recent Documents' menu, and then gets corrupted such that I am unable to open it, how can I programmatically remove it from the Recent Documents list (without removing everything in the list)?

Documentation says overriding recentDocumentURLs isn't used by the DocumentController internals

I've tried overriding the applicationDelegate's application:OpenFile: and returning NO, but that causes cocoa to attempt to open via the document controller (and does not remove it from the list) when the open fails.
(some postings say returning NO tells cocoa to remove the item for the list...and it may for non-Document based apps)_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: NSBox setContentView: messing with the cursor
  • Next by Date: Re: Cocoa Text System - Temporarily Disabling Layout
  • Previous by thread: Re: invalid conversion from 'void*' to 'CGImage*' (QTMovie)
  • Next by thread: What would cause my animation's delegate methods to not be called?
  • Index(es):
    • Date
    • Thread