mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 17:10:48 +00:00
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:
parent
33cea653e0
commit
883fd6211b
2 changed files with 12 additions and 5 deletions
11
ChangeLog
11
ChangeLog
|
@ -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.
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue