Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Drop-in NSUserDefaults settings manager for everyday use.
Objective-C
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
eppz!settings.xcodeproj
eppz!settings
README.md

README.md

eppz!tools eppz!settings

Drop-in NSUserDefaults settings manager for everyday use. You can read in more detail at Advanced yet simple way to save to NSUserDefaults at eppz! blog.

Donate eppz!settings by this or follow


A real time saver

Just create an object with settings, and done.

@interface EPPZSettings : EPPZUserDefaults

@property (nonatomic, strong) NSString *name;
@property (nonatomic) BOOL sound;
@property (nonatomic) float volume;
@property (nonatomic) BOOL messages;
@property (nonatomic) BOOL iCloud;

@end

Saving, loading, observing, default value management all happens under the hood (see sample project).

eppz!settings

Customization hooks

You can define default values by create a .plist named after the class defining the default values within. You can define a subset of properties you want to persist implementing persistablePropertyNames class method.

+(NSArray*)persistablePropertyNames
{ return @[ @"lifeTimeTapCount" ]; }

Limitations

Just as you would do instinctively, use NSUserDefaults acceptable data types only. Check third paragraph in NSUSerDefaults documentation.

License

Licensed under the Open Source MIT license.

githalytics.com alpha

Something went wrong with that request. Please try again.