mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-25 01:31:08 +00:00
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:
parent
2e24f46790
commit
88a0a5bc54
2 changed files with 15 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue