Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NSUserDefaults writes to CSIDL_APPDATA folder, which roams on windows #1167

Closed
rajsesh opened this issue Oct 17, 2016 · 0 comments
Closed

NSUserDefaults writes to CSIDL_APPDATA folder, which roams on windows #1167

rajsesh opened this issue Oct 17, 2016 · 0 comments

Comments

@rajsesh
Copy link
Contributor

rajsesh commented Oct 17, 2016

The expectation is that NSUserDefaults does not roam. "Roaming" settings are usually handled through NSUbiquitousKeyValueStore, which we don't support right now.

A trade off would be to:

  1. NSUserDefaults to always go to local data.
  2. For roaming the settings, use CFPreferences directly and specify kCFPreferencesAnyHost for hostName.
    All other host names will be local only.
@rajsesh rajsesh self-assigned this Oct 17, 2016
rajsesh pushed a commit to rajsesh/WinObjC that referenced this issue Oct 18, 2016
App preferences writes with kCFPreferencesAnyHost, which means we cannot
use the host parameter to differentiate roaming vs local.

The correct way to roam would be through ubiquitous store (which would
have to be covered separately based on need).

Fix microsoft#1167
rajsesh pushed a commit to rajsesh/WinObjC that referenced this issue Oct 18, 2016
App preferences writes with kCFPreferencesAnyHost, which means we cannot
use the host parameter to differentiate roaming vs local.

The correct way to roam would be through ubiquitous store (which would
have to be covered separately based on need).

Fix microsoft#1167
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant