• 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
Re: Access another application's recent document list
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Access another application's recent document list


  • Subject: Re: Access another application's recent document list
  • From: Uli Kusterer <email@hidden>
  • Date: Sun, 20 Nov 2005 01:10:07 +0100

Am 18.11.2005 um 18:39 schrieb Fei Li:
Is there any way I can access the recent document list of another document based application. I found under library/preference directory, the application's .plist file has a property called NSRecentDocumentRecords. Seems it record the list I want. But the element it has is a dictionary _NSLocator with Data type data _NSAlias. How can I use them to know the file name and location.

Note that this is a particular detail of how AppKit works internally, so add a lot of error checking to your code in case Apple changes anything there. That said, what you're likely seeing is a Carbon AliasRecord stored as CFData (pretty much the same as NSData). Nathan Day wrote a nice little NDAlias class that should let you read that data and extract the current path corresponding to that alias.


Cheers,
-- M. Uli Kusterer
http://www.zathras.de


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Access another application's recent document list (From: Fei Li <email@hidden>)

  • Prev by Date: Re: adding Foundation framework to a Carbon application
  • Next by Date: Re: Tiger-style toolbars
  • Previous by thread: Access another application's recent document list
  • Next by thread: NSTextView, NSImage and Anti-Aliasing
  • Index(es):
    • Date
    • Thread