Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Do not roam NSUserDefaults (or CFPreferences)#1169

Merged
rajsesh merged 3 commits into
microsoft:developfrom
rajsesh:nsuserdefaults
Oct 18, 2016
Merged

Do not roam NSUserDefaults (or CFPreferences)#1169
rajsesh merged 3 commits into
microsoft:developfrom
rajsesh:nsuserdefaults

Conversation

@rajsesh

@rajsesh rajsesh commented Oct 18, 2016

Copy link
Copy Markdown
Contributor
Save NSUserDefaults to local app data, not roaming app data.
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 #1167

Raj Seshasankaran added 2 commits October 17, 2016 19:33
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 #1167
@rajsesh

rajsesh commented Oct 18, 2016

Copy link
Copy Markdown
Contributor Author

@DHowett-MSFT is added to the review. #Closed

@rajsesh

rajsesh commented Oct 18, 2016

Copy link
Copy Markdown
Contributor Author

@bbowman is added to the review. #Closed


// WINOBJC: make sure that nFolder is CSIDL_APPDATA or CSIDL_LOCAL_APPDATA and return the app data folder for the app.
Wrappers::HString path = GetAppDataPath(nFolder == CSIDL_LOCAL_APPDATA);
//WinOBJC- In Reference platform, CFPreferences does not roam, so ignore nFolder

@DHowett-MSFT DHowett-MSFT Oct 18, 2016

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: keep the style of the above comment (WINOBJC:) #Pending

@DHowett-MSFT

Copy link
Copy Markdown

:shipit:

@rajsesh rajsesh merged commit 88971d2 into microsoft:develop Oct 18, 2016
@rajsesh rajsesh deleted the nsuserdefaults branch November 17, 2016 21:19
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants