• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: CoreData issue when updating a file format
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: CoreData issue when updating a file format (From: Bill Bumgarner <email@hidden>)
 >Re: CoreData issue when updating a file format (From: Bruno Blondeau <email@hidden>)

  • Prev by Date: NSMovie and DisposeMovie
  • Next by Date: Re: A CoreData Limitation?
  • Previous by thread: Re: CoreData issue when updating a file format
  • Next by thread: Re: CoreData issue when updating a file format
  • Index(es):
    • Date
    • Thread