#import "FakeFileHandle.h" @implementation FakeFileHandle - (id)init { if (self = [super init]) { } return self; } - (void)dealloc { [_dataWritten release]; [super dealloc]; } { [_dataWritten appendData:data]; } { return _dataWritten; } { encoding:NSUTF8StringEncoding] autorelease]; } - (int)fileDescriptor { // Not true, but this will appease some callers. return STDOUT_FILENO; } - (void)synchronizeFile { } @end