Re: best way to save document level settings?
Re: best way to save document level settings?
- Subject: Re: best way to save document level settings?
- From: "M. Uli Kusterer" <email@hidden>
- Date: Sat, 6 Dec 2003 21:21:18 +0100
At 3:17 Uhr -0500 06.12.2003, Scott Anguish wrote:
this is a bad idea. It depends on the application wrapper
being writable.
I think he meant the com.mycompany.myapplication.plist in
~/Library/Preferences/, not the Info.plist.
you could save it to the defaults on a per-document basis
This is one moment where I think you should be using resources. You
could use Nathan Day's NDResourceFork wrapper class. Simply archive
the dictionary containing column info and all that into an NSData,
and then write that NSData to a resource in the document's resource
fork using NDResourceFork.
This has the advantage that your file format doesn't change and you
get to keep the data with each document. And if the resource fork is
lost during transfer, it's not really that bad after all.
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.