diff --git a/Source/NSDictionary.m b/Source/NSDictionary.m index 71974b77c..e91f4a2fb 100644 --- a/Source/NSDictionary.m +++ b/Source/NSDictionary.m @@ -1,5 +1,5 @@ /* NSDictionary - Dictionary object to store key/value pairs - Copyright (C) 1995, 1996 Free Software Foundation, Inc. + Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc. Written by: Andrew Kachites McCallum From skeleton by: Adam Fedor @@ -181,8 +181,16 @@ static Class NSMutableDictionary_concrete_class; - initWithContentsOfFile: (NSString*)path { - [self notImplemented:_cmd]; - return 0; + NSString *myString; + + myString = [[NSString alloc] initWithContentsOfFile:path]; + if (myString) + { + [self initWithDictionary: (NSDictionary*) [myString propertyList]]; + return self; + } + [self autorelease]; + return nil; } - (unsigned) count