Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7511861
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T23:41:26+00:00 2026-05-29T23:41:26+00:00

What I expect to happen: I create an NSUserDefaults object with a username (NSString

  • 0

What I expect to happen:

I create an NSUserDefaults object with a username (NSString of my choosing right?) and when I save defaults it saves those defaults for just that user.

What actually happens:

When I try creating NSUserDefaults for different usernames they are always saved into the same com.companyname.appname.plist file so it seems to ignore the per-user part and just save app-wide.

My Question:

Does this work on iOS or only OSX? What am I missing? Shouldn’t I be getting a different plist file per-user? I reviewed the one .plist it does create in xcode and there’s nothing in there that tells the default it belongs to a particular username.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T23:41:27+00:00Added an answer on May 29, 2026 at 11:41 pm

    Yes you are misunderstanding it, but really it’s a badly named method.

    Essentially it’s to allow Apps that run as root (or superuser) to access the UserDefaults for other users.

    In this case, user is a unix user, not some arbitrary partitioning name that you (the developer) chooses.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it alright to expect that the user using the back end will have
Is there a way to create a mock object based on an already existing
I observed something last week that I did not expect, and will describe below.
In this code I would expect a call to ReleaseDC to happen in MyCanvas.Free
I am trying to create a web page using php. The problem is that
I am trying to create a calculated field where if two values happen to
I am using AS3 to create a tween affect between multiple images that have
I'm trying to create an MVC view that will display some data in a
As you many know when you proxy an object, like when you create a
I expect the column to be a VARCHAR2, in my Oracle Database. US Zips

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.