mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
([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:
parent
02e668e975
commit
45dd488210
1 changed files with 11 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue