I am writing a VBA add-in for Office:mac 2011.
I use the SaveSetting, GetSetting, DeleteSetting trio for storing user preferences as done in Windows. Unlike Windows, Mac is not using a registry but individual plist files.
Let's say I save a setting like this:
SaveSetting "myAppName", "mySection", "myKey", "mySetting"
It will create the following file:
I can the return the setting in the Immediate window:
?GetSetting ("myAppName", "mySection", "myKey", "?")
returns -> mySetting
If I now delete that plist file and try to get the get the setting again, one would expect to get the default "?" returned but surprisingly, the string "mySetting" is returned!
I used a specialist tool to search my entire Mac for any other copies of myAppName.plist and found none so is Microsoft Office storing a backup copy with a different name somewhere?
I need to delete all traces of the app's plist file(s) to be able to test a user first run experience.