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:
rfm 2008-11-11 06:59:11 +00:00
parent 6afce1ea49
commit 577da43f2c
2 changed files with 15 additions and 0 deletions

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;