Re: Per-document preferences?
Re: Per-document preferences?
- Subject: Re: Per-document preferences?
- From: James Bucanek <email@hidden>
- Date: Fri, 24 Jun 2005 16:16:57 -0700
SA Dev wrote on Friday, June 24, 2005:
> Why don't you just create an NSMutableDictionary as an iVar for
>your document? Save it along with all the rest of your doc data.
The "document" in this instance is a package which contains a binary database. There really is no "document data" in the traditional NSDocument sense.
As I look at the problem, I think this is exactly what I'll do: Create an NSMutableDictionary and store all of the user settings and layout parameters. Using NSPropertyListSerialization, I shouldn't have any trouble turning a dictionary of document properties and user settings into an XML or binary file that I can store inside the package.
What I'm dreading is having to save and restore the dozens of little layout variables for the window. It looked like the "autosave" feature of NSTableView, et. al. was designed to remove this burden from the programmer, but it seems hopelessly tied to the application defaults.
--
James Bucanek <mailto:email@hidden>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden