Skip to content

A simple implementation of NSUserDefaults with shorter getting and setting methods

License

Notifications You must be signed in to change notification settings

Cacauu/NSSimpleDefaults

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

NSSimpleDefaults

NSSimpleDefaults is an attempt to make NSUserDefaults easier and more efficient to use.

Installation

Cocoapods

Sample Podfile for OS X 10.9:

platform :osx, '10.9'
pod 'NSSimpleDefaults', '>1.0'

Old Way

You can, obviously, just clone this repo and drag NSSimpleDefaults.h and NSSimpleDefaults.m into your project.

Example

#import "NSSimpleDefaults.h"

// Set an object for a key
[NSSimpleDefaults setObject:@"My String" forKey:@"MYSTRING"];

// Get an object for a key
[NSSimpleDefaults getObjectForKey:@"MYSTRING"]; // Would return "My String"

About

A simple implementation of NSUserDefaults with shorter getting and setting methods

Resources

License

Stars

Watchers

Forks

Packages

No packages published