CocoaDev

Edit AllPages

Code for using custom types with the NSUserDefaults class.

Modified from the NSColor sample code on Apple’s developer web site

Source for NSUserDefaults+CocoaDevUsersAdditions.h :

#import <Foundation/Foundation.h>

@interface NSUserDefaults(CocoaDevUsersAdditions)

Source for NSUserDefaults+CocoaDevUsersAdditions.m :

#import “NSUserDefaults+CocoaDevUsersAdditions.h”

@implementation NSUserDefaults(CocoaDevUsersAdditions)

Category:CocoaDevUsersAdditions