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 (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to