mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-20 06:58:20 +00:00
OSX server launcher fix
This commit is contained in:
parent
fa02f461c7
commit
3da600dc33
|
@ -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];
|
||||||
|
|
Loading…
Reference in a new issue