diff options
author | Matthias Andreas Benkard <matthias@benkard.de> | 2008-08-04 16:20:18 +0200 |
---|---|---|
committer | Matthias Andreas Benkard <matthias@benkard.de> | 2008-08-04 16:20:18 +0200 |
commit | a4c9f5bd436dae1d99845f50da55bae733129f56 (patch) | |
tree | 22a1718222ab8d76f928cfaa4740442a4d43c1fd /MLKStringOutputStream.m | |
parent | a0b4d1eafa4312b5970f7268441d848be5231e7b (diff) |
Add fixnum-aware macros LRETAIN, LRELEASE, LDESTROY, LAUTORELEASE, LASSIGN_COPY, and LASSIGN.
Diffstat (limited to 'MLKStringOutputStream.m')
-rw-r--r-- | MLKStringOutputStream.m | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/MLKStringOutputStream.m b/MLKStringOutputStream.m index 7ddd045..f3346e2 100644 --- a/MLKStringOutputStream.m +++ b/MLKStringOutputStream.m @@ -18,6 +18,7 @@ #import "MLKStringOutputStream.h" #import "runtime-compatibility.h" +#import "util.h" #import <Foundation/NSData.h> #import <Foundation/NSString.h> @@ -28,7 +29,7 @@ -(id) init { self = (id)[super initWithInputStream:nil - outputStream:AUTORELEASE ([[NSOutputStream alloc] initToMemory]) + outputStream:LAUTORELEASE ([[NSOutputStream alloc] initToMemory]) encoding:NSUnicodeStringEncoding]; return self; } @@ -36,7 +37,7 @@ -(NSString *) string { NSData *data = [_output propertyForKey:NSStreamDataWrittenToMemoryStreamKey]; - return AUTORELEASE ([[NSString alloc] initWithData:data + return LAUTORELEASE ([[NSString alloc] initWithData:data encoding:NSUnicodeStringEncoding]); } @end |