Re: How to know if a file has been opened before?
Re: How to know if a file has been opened before?
- Subject: Re: How to know if a file has been opened before?
- From: Jens Alfke <email@hidden>
- Date: Tue, 05 Jun 2012 10:10:20 -0700
On Jun 5, 2012, at 6:45 AM, Stephen J. Butler wrote:
> One thing you could try is to mix the two ideas. Generate a GUID for
> each file and store that in the extended attribute. Then use the GUID
> to lookup your session information in an application CoreData store or
> simple SQLite database.
But if someone makes a copy of the file, you've now got two documents with the same GUID, and if the settings for those documents change (as they will if the user opens both) you won't be able to keep track of them independently.
"The only hard problems in computer science are naming things, cache invalidation, and off-by-one errors."
—A co-worker of mine, no doubt quoting someone famous
—Jens
_______________________________________________
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