mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
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:
parent
41579a1b05
commit
87d50c751d
1 changed files with 11 additions and 3 deletions
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue