• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
"theme" sets with NSUserDefaults
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

"theme" sets with NSUserDefaults


  • Subject: "theme" sets with NSUserDefaults
  • From: John Stoneham <email@hidden>
  • Date: Mon, 3 May 2010 08:59:43 -0500

Here's the scenario. In my (OS X) app's preferences, I'd like the user to be
able select between sets of preference settings, and I'd like to be able to
use NSUserDefaults for this without having to deal with extra plists.

Here's an example to illustrate the idea. On the preferences page there is a
combo box, where the user can pick a "theme" or enter the name of a new
theme. The settings for the theme are some check buttons which have
different states for the different themes. Obviously, the current state is
easy with NSUserDefaults. But I can't figure out how to have each "theme"
state stored in NSUserDefaults.

Is this possible, or do I just need to forget it and use plists?

--
John
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: "theme" sets with NSUserDefaults
      • From: James Bucanek <email@hidden>
    • Re: "theme" sets with NSUserDefaults
      • From: Jens Alfke <email@hidden>
  • Prev by Date: PMSessionGetDocumentFormatGeneration
  • Next by Date: Re: "theme" sets with NSUserDefaults
  • Previous by thread: PMSessionGetDocumentFormatGeneration
  • Next by thread: Re: "theme" sets with NSUserDefaults
  • Index(es):
    • Date
    • Thread