mplement KVC methods

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27022 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2008-11-11 06:59:11 +00:00
parent 2e24f46790
commit 88a0a5bc54
2 changed files with 15 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2008-10-11 Richard Frith-Macdonald <rfm@gnu.org>
* 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 <greg_casamento@yahoo.com>
* Testing/synctest/GNUmakefile

View file

@ -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;