Affinity between a document (plain text) file and app-specific parameters for this document
Affinity between a document (plain text) file and app-specific parameters for this document
- Subject: Affinity between a document (plain text) file and app-specific parameters for this document
- From: Nick <email@hidden>
- Date: Wed, 21 Sep 2011 23:34:57 +0300
Hello
I am trying to implement some kind of "memory" for the documents in my
application. For example, each document window has a position on the
screen. So I'd like to see this position next time the user opens this saved
document.
I can't save this info in the document file itself, as documents are plain
text files.
How it is usually done? Where it is best to store this 'meta' information
that is attached to the document, provided that it can't be stored in the
document itself? Does Mac OS provide some kind of tracking of saved earlier
documents (i believe it does, since it keeps history of recently opened
documents. i don't know where though...).
Should I store this information in some HFS's 'file fork'? Or is it better
to create a "shadow file" for every document that keeps this metainformation
(wouldn't like to do so, i keep that as the last resort).
Thank you for any advice!
_______________________________________________
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