diff --git a/ChangeLog b/ChangeLog index 26d9a7913..923ddaa94 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-10-11 Richard Frith-Macdonald + + * Source/NSUserDefaults.m: implement KVC methods to get and set values + as these appear to be an undocumented feature of MacOS-X (bug #24807). + 2008-11-05 17:27-EST Gregory John Casamento * Testing/synctest/GNUmakefile diff --git a/Source/NSUserDefaults.m b/Source/NSUserDefaults.m index e987dffc7..e519c38c1 100644 --- a/Source/NSUserDefaults.m +++ b/Source/NSUserDefaults.m @@ -1175,6 +1175,11 @@ static BOOL isPlistObject(id o) [_lock unlock]; } +- (void) setValue: (id)value forKey: (NSString*)defaultName +{ + [self setObject: value forKey: (NSString*)defaultName]; +} + - (NSArray*) stringArrayForKey: (NSString*)defaultName { id arr = [self arrayForKey: defaultName]; @@ -1276,6 +1281,11 @@ static BOOL isPlistObject(id o) [_lock unlock]; } +- (id) valueForKey: (NSString*)aKey +{ + return [self objectForKey: aKey]; +} + - (BOOL) wantToReadDefaultsSince: (NSDate*)lastSyncDate { NSFileManager *mgr;