Chris Antos wrote:
>
> > what purpose does it serve to write version info into the app prefs with
> > PrefSetAppPreferences when PrefGetAppPreferences doesnt call it back?
>
> it wouldn't make sense. that's why PrefGetAppPreferences returns the
> version number.
the docs say nothing about it returning the version number. they say it
returns a constant if no prefs available, and some other number
otherwise. it doesnt say what this number is, just suggests that you
compare it to the size of your struct.
> > does the system use this version info? if my app is version 1.2, how do
> > i format that as an integer for the version info?
>
> however you like. it's totally up to you, since users won't see the number.
> personally, my prefs version number is independent from the "real" version
> number of the app. (for example, sometimes when the "real" version gets
> incremented, the prefs haven't changed so there's no need to bump the prefs
> version number).
does the prefs database ever get deleted? is that one thing that gets
removed when an app is deleted? if so, what if you dont delete the app
but just overwrite it with a new copy that may create a new 'version' of
the prefs. does the old version ever get deleted?
pete