Re: strategies for storing NSDocument additional meta-data

2011-08-28 Thread Martin Hewitson
Gary, many thanks. Your advice lead me to UKXattrMetadataStore which works perfectly for the small NSDictionary of settings I have. Thanks again, Martin On 28, Aug, 2011, at 04:35 PM, Gary L. Wade wrote: > Many applications use extended attributes (xattr) for similar purposes. The > oldest wa

Re: strategies for storing NSDocument additional meta-data

2011-08-28 Thread Gary L. Wade
Many applications use extended attributes (xattr) for similar purposes. The oldest way that still works is to use the resource fork of a file, which is sometimes implemented as an xattr. In these cases, for those file systems that support them, they are intrinsically part of the same file. - Ga

strategies for storing NSDocument additional meta-data

2011-08-28 Thread Martin Hewitson
Dear list, I've been scratching my head for a while on this. Suppose you have an NSDocument app like TextEdit which just allows the user to edit a text file. Now suppose there are some additional state settings associated with the editor. These could dictate how the contents of the text file ar