Re: Access another application's recent document list
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