• 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
Re: multiple profiles in preferences mechanism
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: multiple profiles in preferences mechanism


  • Subject: Re: multiple profiles in preferences mechanism
  • From: Jens Alfke <email@hidden>
  • Date: Sat, 13 Apr 2013 20:53:42 -0700

On Apr 13, 2013, at 7:39 AM, Nick Rogers <email@hidden> wrote:

> But the problem is I need to have profiles (or rather Presets) for preferences. Each preset would have the same set of preferences.
> I am thinking of a table view on left where presets could be added/removed and on right there would be UI controls for preferences (basically all are check boxes).

You can make a user default whose value is a dictionary of presets (i.e. mapping preset name -> dictionary of prefs for that preset). You should be able to manage that with a controller, using the appropriate key-paths.

—Jens
_______________________________________________

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


References: 
 >multiple profiles in preferences mechanism (From: Nick Rogers <email@hidden>)

  • Prev by Date: Re: Is there a pattern for creating an object with global scope?
  • Next by Date: Followup - Re: Is there a pattern for creating an object with global scope?
  • Previous by thread: Re: multiple profiles in preferences mechanism
  • Next by thread: Can Deactivation be Prevented When Launching Popover?
  • Index(es):
    • Date
    • Thread