Write to the stream directly

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@27411 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2008-12-23 14:48:11 +00:00
parent dad9dde30e
commit cd2924d9ab
2 changed files with 9 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2008-12-22 21:51-EST Gregory John Casamento <greg_casamento@yahoo.com>
* Modules/Debuggers/ProjectCenter/PCDebugger.m: Write to
the filehandle via the stream in -[PCDebugger putChar:].
2008-12-22 19:56-EST Gregory John Casamento <greg_casamento@yahoo.com>
* Modules/Debuggers/ProjectCenter/PCDebugger.h

View file

@ -277,6 +277,9 @@
- (void)putChar:(unichar)ch
{
fputc(ch, stdInStream);
NSData *data = [NSData dataWithBytes: &ch length: 1];
NSFileHandle *fh = [standardInput fileHandleForWriting];
[fh writeData: data];
// fputc(ch, stdInStream);
}
@end