mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +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
1dd5561172
commit
cc6f781e05
1 changed files with 15 additions and 3 deletions
|
@ -367,7 +367,19 @@ static NSMutableString *processName = nil;
|
||||||
|
|
||||||
if (obj)
|
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];
|
[self __changePersistentDomain:processName];
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
|
@ -464,7 +476,7 @@ static NSMutableString *processName = nil;
|
||||||
*************************************************************************/
|
*************************************************************************/
|
||||||
- (NSDictionary *)persistentDomainForName:(NSString *)domainName
|
- (NSDictionary *)persistentDomainForName:(NSString *)domainName
|
||||||
{
|
{
|
||||||
return [persDomains objectForKey:domainName];
|
return [[persDomains objectForKey:domainName] copy];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (NSArray *)persistentDomainNames
|
- (NSArray *)persistentDomainNames
|
||||||
|
@ -714,7 +726,7 @@ static NSMutableString *processName = nil;
|
||||||
{
|
{
|
||||||
changedDomains = [[NSMutableArray arrayWithCapacity:5] retain];
|
changedDomains = [[NSMutableArray arrayWithCapacity:5] retain];
|
||||||
[[NSNotificationCenter defaultCenter]
|
[[NSNotificationCenter defaultCenter]
|
||||||
postNotificationName:NSUserDefaultsChanged object:nil];
|
postNotificationName:NSUserDefaultsDidChange object:nil];
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!tickingTimer)
|
if (!tickingTimer)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue