([NSDictionary -initWithContentsOfFile:]): Implemented. (By David

Wetzel <dave@turbocat.de>.)


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2022 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Andrew McCallum 1997-01-06 22:43:08 +00:00
parent 02e668e975
commit 45dd488210

View file

@ -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 <mccallum@gnu.ai.mit.edu>
From skeleton by: Adam Fedor <fedor@boulder.colorado.edu>
@ -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