diff --git a/ChangeLog b/ChangeLog index dcf085777..7043c0552 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2004-06-20 Richard Frith-Macdonald + + * Source/NSUserDefaults.m: ([initForUser:]) carry on and initialise + an instance even if the users defaults directory doesn't exist and + can't be created. Created instance is read only and a warning is + issued. + 2004-06-18 Adam Fedor * Tools/gdomap.c (xgethostname): Add missing colon (patch diff --git a/Source/NSUserDefaults.m b/Source/NSUserDefaults.m index 5e0072b24..61c044fd7 100644 --- a/Source/NSUserDefaults.m +++ b/Source/NSUserDefaults.m @@ -779,11 +779,6 @@ static NSString *pathForUser(NSString *user) { NSString *path = pathForUser(userName); - if (path == nil) - { - RELEASE(self); - return nil; - } return [self initWithContentsOfFile: path]; }