OSX server launcher fix

This commit is contained in:
Joel de Vahl 2009-01-13 18:05:08 +00:00
parent fa02f461c7
commit 3da600dc33

View file

@ -28,12 +28,10 @@
NSString *string = [[NSString alloc] initWithData: data encoding: NSASCIIStringEncoding]; NSString *string = [[NSString alloc] initWithData: data encoding: NSASCIIStringEncoding];
NSAttributedString *attrstr = [[NSAttributedString alloc] initWithString: string]; NSAttributedString *attrstr = [[NSAttributedString alloc] initWithString: string];
[[self textStorage] beginEditing];
[[self textStorage] appendAttributedString: attrstr]; [[self textStorage] appendAttributedString: attrstr];
int length = [[self textStorage] length]; int length = [[self textStorage] length];
NSRange range = NSMakeRange(length, 0); NSRange range = NSMakeRange(length, 0);
[self scrollRangeToVisible: range]; [self scrollRangeToVisible: range];
[[self textStorage] endEditing];
[attrstr release]; [attrstr release];
[string release]; [string release];