Fix bug positing notifications

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31976 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2011-01-29 16:15:46 +00:00
parent 33cea653e0
commit 883fd6211b
2 changed files with 12 additions and 5 deletions

View file

@ -1,7 +1,13 @@
2011-01-29 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSUserDefaults.m: Fix bug with notifications ... was not always
sending them when a domain was modified.
2011-01-29 Stefan Bidigaray <stefanbidi@gmail.com>
* Headers/Foundation/NSLocale.h: Use GS_EXPOSE(NSLocale).
* Source/NSLocale.m: ([-autoupdatingCurrentLocale]) Handle locale updates.
* Source/NSLocale.m: ([-autoupdatingCurrentLocale]) Handle locale
updates.
([-currentLocale]) Check Locale default for current user's locale.
([-preferredLanguages]) Do not add same language multiple times.
@ -74,7 +80,8 @@
* configure:
* configure.ac:
* Headers/Additions/GNUstepBase/config.h.in: Added check for unicode/udat.h.
* Headers/Additions/GNUstepBase/config.h.in: Added check for
unicode/udat.h.
* Headers/Foundation/NSDateFormatter.h:
* Source/NSDateFormatter.m: Implemented a few methods.

View file

@ -2113,14 +2113,14 @@ NSLog(@"Creating empty user defaults database");
_changedDomains = [[NSMutableArray alloc] initWithObjects: &domainName
count: 1];
updateCache(self);
[[NSNotificationCenter defaultCenter]
postNotificationName: NSUserDefaultsDidChangeNotification
object: self];
}
else if ([_changedDomains containsObject: domainName] == NO)
{
[_changedDomains addObject: domainName];
}
[[NSNotificationCenter defaultCenter]
postNotificationName: NSUserDefaultsDidChangeNotification
object: self];
[_lock unlock];
}
NS_HANDLER