Change package id but save settings

I have a Mac OS X Cocoa application. I want to be able to change my package identifier for a future version, but keep my preferences (package identifier in ~ / Library / Preferences). I am confused how to copy them at startup into a preferences file with a new identifier. I want to make it invisible to the user, so that their settings are the same when starting a new application, not knowing that this is a new id / prefs file.

Thanks!

+4
source share
1 answer

It looks like you should do this with a combination of CFPreferencesCopyKeyList() and CFPreferencesCopyMultiple() .

+6
source

Source: https://habr.com/ru/post/1334607/


All Articles