Source

CPU Usage / PRHUbiquitousUserDefaults.h

Full commit
//
//  PRHUbiquitousUserDefaults.h
//  CPU Usage
//
//  Created by Peter Hosey on 2011-11-29.
//  Copyright (c) 2011 Peter Hosey. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface PRHUbiquitousUserDefaults : NSUserDefaults

@property(copy) NSArray *ubiquitousKeys;

- (NSUInteger) countOfUbiquitousKeys;
- (NSString *) objectInUbiquitousKeysAtIndex:(NSUInteger)idx;
- (void) insertObject:(NSString *)key inUbiquitousKeysAtIndex:(NSUInteger)idx;
- (void) removeObjectFromUbiquitousKeysAtIndex:(NSUInteger)idx;
- (void) replaceObjectInUbiquitousKeysAtIndex:(NSUInteger)idx withObject:(NSString *)key;

//Use these if you plan to set a bunch of prefs at once. The syncs with disk and iCloud will be deferred until the outermost group ends.
- (void) beginSynchronizationGroup;
- (void) endSynchronizationGroup;

@end