mirror of
https://github.com/gnustep/libs-base.git
synced 2025-06-01 17:12:03 +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
cd0f233c55
commit
5c5bd427dc
1 changed files with 11 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
||||||
/* NSDictionary - Dictionary object to store key/value pairs
|
/* 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>
|
Written by: Andrew Kachites McCallum <mccallum@gnu.ai.mit.edu>
|
||||||
From skeleton by: Adam Fedor <fedor@boulder.colorado.edu>
|
From skeleton by: Adam Fedor <fedor@boulder.colorado.edu>
|
||||||
|
@ -181,8 +181,16 @@ static Class NSMutableDictionary_concrete_class;
|
||||||
|
|
||||||
- initWithContentsOfFile: (NSString*)path
|
- initWithContentsOfFile: (NSString*)path
|
||||||
{
|
{
|
||||||
[self notImplemented:_cmd];
|
NSString *myString;
|
||||||
return 0;
|
|
||||||
|
myString = [[NSString alloc] initWithContentsOfFile:path];
|
||||||
|
if (myString)
|
||||||
|
{
|
||||||
|
[self initWithDictionary: (NSDictionary*) [myString propertyList]];
|
||||||
|
return self;
|
||||||
|
}
|
||||||
|
[self autorelease];
|
||||||
|
return nil;
|
||||||
}
|
}
|
||||||
|
|
||||||
- (unsigned) count
|
- (unsigned) count
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue