mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-20 20:26:42 +00:00
Updated
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2960 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
a8865aee80
commit
3fc27b79fb
1 changed files with 15 additions and 3 deletions
|
@ -367,7 +367,19 @@ static NSMutableString *processName = nil;
|
|||
|
||||
if (obj)
|
||||
{
|
||||
[[persDomains objectForKey:processName] removeObjectForKey:defaultName];
|
||||
id obj = [persDomains objectForKey: processName];
|
||||
NSMutableDictionary *dict;
|
||||
|
||||
if ([obj isKindOfClass: [NSMutableDictionary class]] == YES)
|
||||
{
|
||||
dict = obj;
|
||||
}
|
||||
else
|
||||
{
|
||||
dict = [obj mutableCopy];
|
||||
[persDomains setObject: dict forKey: processName];
|
||||
}
|
||||
[dict removeObjectForKey:defaultName];
|
||||
[self __changePersistentDomain:processName];
|
||||
}
|
||||
return;
|
||||
|
@ -464,7 +476,7 @@ static NSMutableString *processName = nil;
|
|||
*************************************************************************/
|
||||
- (NSDictionary *)persistentDomainForName:(NSString *)domainName
|
||||
{
|
||||
return [persDomains objectForKey:domainName];
|
||||
return [[persDomains objectForKey:domainName] copy];
|
||||
}
|
||||
|
||||
- (NSArray *)persistentDomainNames
|
||||
|
@ -714,7 +726,7 @@ static NSMutableString *processName = nil;
|
|||
{
|
||||
changedDomains = [[NSMutableArray arrayWithCapacity:5] retain];
|
||||
[[NSNotificationCenter defaultCenter]
|
||||
postNotificationName:NSUserDefaultsChanged object:nil];
|
||||
postNotificationName:NSUserDefaultsDidChange object:nil];
|
||||
}
|
||||
|
||||
if (!tickingTimer)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue