Re: CoreData issue when updating a file format
Re: CoreData issue when updating a file format
- Subject: Re: CoreData issue when updating a file format
- From: Jim Correia <email@hidden>
- Date: Wed, 18 May 2005 11:56:58 -0400
On May 18, 2005, at 8:49 AM, Bruno Blondeau wrote:
A problem I'm currently facing is that I'm storing document-
specific preferences (window position,...) in different fields of a
singleton object. Each time I'm adding a new preference, there is a
trivial model change. Using XML, everything was going smoothly
during early development. Now that I tried SQL, this isn't working.
I think I'm going to change the way I'm handling this, even if my
previous solution was very convenient when mixed with cocoa
bindings. I will also have to try to plan well in advance
everything that is going to be needed in future versions for the
model side.
I haven't actually done (yet) what I'm suggesting, but if you want to
have "flexible" document settings without continuously updating the
model perhaps you can do something like this:
Entity
settings (Binary - dictionary encoded as binary plist)
settingsDictionary (Transient, non-standard attribute)
Then you can add/remove keys to your setting dictionary as things
change. The UI would bind to
Entity.settingsDictionary.windowPosition, etc.
Jim
_______________________________________________
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