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 7160999
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T13:29:29+00:00 2026-05-28T13:29:29+00:00

i am trying to work on nsuserdefaults but few things are confusing me in

  • 0

i am trying to work on nsuserdefaults but few things are confusing me in apple reference and setting guide they says

Preferences are pieces of information that you store persistently and
use to configure your app. Apps often expose preferences to users so
that they can customize the appearance and behavior of the app. Most
preferences are stored locally using the Cocoa preferences
system—known as the user defaults system
. Apps can also store
preferences in a user’s iCloud account using the key-value store.

The user defaults system and key-value store are both designed for
storing simple data types—strings, numbers, dates, Boolean values,
URLs, data objects, and so forth—in a property list
. The use of a
property list also means you can organize your preference data using
array and dictionary types
. It is also possible to store other objects
in a property list by encoding them into an NSData object first
.

but what is users defaults system and further on in this guide they say users defaults database… if they are talking about database then why here they wrote use of plist?

similar question but not helping me

thanks in advance.

  • 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-28T13:29:29+00:00Added an answer on May 28, 2026 at 1:29 pm

    NSUserDefaults is a key value store for saving preferences. It works very much like an NSDictionary where you insert an object for a key, and pull it out.

    Since the object needs to be saved to disk, only plist serializable objects work, unless you turn them into NSData first.

    It is not the type of database you can run SQL queries on.

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

Sidebar

Related Questions

Programming Student here...trying to work on a project but I'm stuck. The project is
I'm trying to work through the problems on projecteuler.net but I keep running into
I am trying to work on some stuff using the Scanner for input, but
trying to work out how to install zipArchive extension with MAMP, but not having
I´m trying to work with Jzy3D library and paint some charts under openGl. But
I have been using NSUserDefaults for passing floats all around my apps. But they
I'm trying to work this function but I can't. My application hasn't got a
Im trying to work harder with those constructions but definitelly I dont see them
Trying to work with array, but it gives me Statement requires expression of integer
Trying to work around a few corner cases for when push notifications are denied

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.