version 1.3, 2006/03/07 11:15:23 |
version 1.4, 2006/03/12 07:09:51 |
|
|
|
|
-(void)insertText: (id) text { |
-(void)insertText: (id) text { |
NSRange myRange = NSMakeRange([[textViewOut textStorage] length],0); |
NSRange myRange = NSMakeRange([[textViewOut textStorage] length],0); |
[textViewOut replaceCharactersInRange: myRange withString: @""]; // goto the end of output window. |
[textViewOut setSelectedRange: myRange]; // goto the end of output window. |
[textViewOut insertText: text]; |
[textViewOut insertText: text]; |
[textViewOut scrollRangeToVisible: NSMakeRange([[textViewOut textStorage] length],0)]; |
[textViewOut scrollRangeToVisible: NSMakeRange([[textViewOut textStorage] length],0)]; |
} |
} |