diff --git a/Source/NSUserDefaults.m b/Source/NSUserDefaults.m index 1326aff1d..f1c477baf 100644 --- a/Source/NSUserDefaults.m +++ b/Source/NSUserDefaults.m @@ -1658,7 +1658,8 @@ - (void) setObject: (id)value forKey: (NSString*)defaultName [_persDomains setObject: pd forKey: processName]; RELEASE(pd); } - old = [pd objectForKey: defaultName]; + // Make sure to search all domains and not only the process domain + old = [self objectForKey: defaultName]; if ([pd setObject: value forKey: defaultName]) { [self _changePersistentDomain: processName];