• 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 to remove an item from recentDocumentURLs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to remove an item from recentDocumentURLs


  • Subject: How to remove an item from recentDocumentURLs
  • From: bmaclist <email@hidden>
  • Date: Wed, 22 Sep 2010 13:11:00 -0500

f 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

  • Follow-Ups:
    • Re: How to remove an item from recentDocumentURLs
      • From: Jerry Krinock <email@hidden>
  • Prev by Date: Registering URL schemes with Launch Services from mounted DMG images
  • Next by Date: Re: NSOperation and threadDictionary
  • Previous by thread: Registering URL schemes with Launch Services from mounted DMG images
  • Next by thread: Re: How to remove an item from recentDocumentURLs
  • Index(es):
    • Date
    • Thread