An easy way to store user preferences using NSUserDefaults.

PAPreferences maps dynamic properties onto NSUserDefaults getters and setters so that you can access defaults as if they were regular properties on an object. That object is normally a singleton since you typically want a single set of preferences for the entire app.

Works with iOS and OSX.

PAPreferences on GitHub

Using @dynamic properties to access NSUserDefaults

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>