mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 16:50:58 +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
6afce1ea49
commit
577da43f2c
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>
|
2008-11-05 17:27-EST Gregory John Casamento <greg_casamento@yahoo.com>
|
||||||
|
|
||||||
* Testing/synctest/GNUmakefile
|
* Testing/synctest/GNUmakefile
|
||||||
|
|
|
@ -1175,6 +1175,11 @@ static BOOL isPlistObject(id o)
|
||||||
[_lock unlock];
|
[_lock unlock];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (void) setValue: (id)value forKey: (NSString*)defaultName
|
||||||
|
{
|
||||||
|
[self setObject: value forKey: (NSString*)defaultName];
|
||||||
|
}
|
||||||
|
|
||||||
- (NSArray*) stringArrayForKey: (NSString*)defaultName
|
- (NSArray*) stringArrayForKey: (NSString*)defaultName
|
||||||
{
|
{
|
||||||
id arr = [self arrayForKey: defaultName];
|
id arr = [self arrayForKey: defaultName];
|
||||||
|
@ -1276,6 +1281,11 @@ static BOOL isPlistObject(id o)
|
||||||
[_lock unlock];
|
[_lock unlock];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (id) valueForKey: (NSString*)aKey
|
||||||
|
{
|
||||||
|
return [self objectForKey: aKey];
|
||||||
|
}
|
||||||
|
|
||||||
- (BOOL) wantToReadDefaultsSince: (NSDate*)lastSyncDate
|
- (BOOL) wantToReadDefaultsSince: (NSDate*)lastSyncDate
|
||||||
{
|
{
|
||||||
NSFileManager *mgr;
|
NSFileManager *mgr;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue