Individual Preference for Each Document

  • i have a Core-Data document based application, and i wish to keep
    some of the preferences different for each document.
    currently i have a separate entity in my data model storing all the
    preferences i wish to keep individual.
    but i've had to change the data model many times, and the thought of
    constantly having to change it in the future is somewhat frightening,
    especially after i officially release the application.
    is there a better approach?
    thanks.

    Tony S. Wu
    <tonyswu...>
  • On Oct 7, 2007, at 5:59 PM, Tony S. Wu wrote:

    > i have a Core-Data document based application, and i wish to keep
    > some of the preferences different for each document.
    > currently i have a separate entity in my data model storing all the
    > preferences i wish to keep individual.
    > but i've had to change the data model many times, and the thought
    > of constantly having to change it in the future is somewhat
    > frightening, especially after i officially release the application.
    > is there a better approach?

    Have one attribute and store an NSDictionary which contains your
    prefs in it rather than storing each separately in the model.

    --
    Seth Willits
  • >> i have a Core-Data document based application, and i wish to keep
    >> some of the preferences different for each document.
    >> currently i have a separate entity in my data model storing all the
    >> preferences i wish to keep individual.
    >> but i've had to change the data model many times, and the thought
    >> of constantly having to change it in the future is somewhat
    >> frightening, especially after i officially release the application.
    >> is there a better approach?
    >
    > Have one attribute and store an NSDictionary which contains your
    > prefs in it rather than storing each separately in the model.

    You could also place it in the store metadata; see the Core Data
    Programming Guide section on Persistent Stores.

    -Ben
previous month october 2007 next month
MTWTFSS
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31        
Go to today