mirror of
https://github.com/gnustep/libs-base.git
synced 2025-06-02 09:31:07 +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
2a6015020f
commit
14a4337ace
1 changed files with 11 additions and 3 deletions
|
@ -24,8 +24,9 @@
|
||||||
#include <objects/stdobjects.h>
|
#include <objects/stdobjects.h>
|
||||||
#include <foundation/NSData.h>
|
#include <foundation/NSData.h>
|
||||||
#include <foundation/NSString.h>
|
#include <foundation/NSString.h>
|
||||||
|
#include <foundation/NSGData.h>
|
||||||
|
|
||||||
@class NSGNUData; /* xxx Needs to be #included. */
|
/* xxx Pretty messy. Needs work. */
|
||||||
|
|
||||||
@implementation NSData
|
@implementation NSData
|
||||||
|
|
||||||
|
@ -33,7 +34,7 @@
|
||||||
|
|
||||||
+ (id) data
|
+ (id) data
|
||||||
{
|
{
|
||||||
return [[[NSGNUData alloc] init]
|
return [[[NSGData alloc] init]
|
||||||
autorelease];
|
autorelease];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -71,7 +72,7 @@
|
||||||
return [self initWithBytesNoCopy:buf length:length];
|
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
|
- (id) initWithBytesNoCopy: (void*)bytes
|
||||||
length: (unsigned int)length
|
length: (unsigned int)length
|
||||||
{
|
{
|
||||||
|
@ -81,6 +82,13 @@
|
||||||
return nil;
|
return nil;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- init
|
||||||
|
{
|
||||||
|
/* xxx Is this right? */
|
||||||
|
return [self initWithBytesNoCopy:NULL
|
||||||
|
length:0];
|
||||||
|
}
|
||||||
|
|
||||||
- (id) initWithContentsOfFile: (NSString*)path
|
- (id) initWithContentsOfFile: (NSString*)path
|
||||||
{
|
{
|
||||||
return [self notImplemented:_cmd];
|
return [self notImplemented:_cmd];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue