Fixed typos. Implemented -init.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@362 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Andrew McCallum 1995-04-15 19:40:19 +00:00
parent 41579a1b05
commit 87d50c751d

View file

@ -24,8 +24,9 @@
#include <objects/stdobjects.h>
#include <foundation/NSData.h>
#include <foundation/NSString.h>
#include <foundation/NSGData.h>
@class NSGNUData; /* xxx Needs to be #included. */
/* xxx Pretty messy. Needs work. */
@implementation NSData
@ -33,7 +34,7 @@
+ (id) data
{
return [[[NSGNUData alloc] init]
return [[[NSGData alloc] init]
autorelease];
}
@ -71,7 +72,7 @@
return [self initWithBytesNoCopy:buf length:length];
}
/* This is one of the designated initializers for NSData */
/* This is the designated initializer for NSData */
- (id) initWithBytesNoCopy: (void*)bytes
length: (unsigned int)length
{
@ -81,6 +82,13 @@
return nil;
}
- init
{
/* xxx Is this right? */
return [self initWithBytesNoCopy:NULL
length:0];
}
- (id) initWithContentsOfFile: (NSString*)path
{
return [self notImplemented:_cmd];