mirror of
https://github.com/UberGames/lilium-voyager.git
synced 2024-12-15 22:51:13 +00:00
ba6fb02319
0110
18 lines
617 B
Objective-C
18 lines
617 B
Objective-C
#import "ErrorWindow.h"
|
|
|
|
@implementation ErrorWindow
|
|
|
|
- (void)bitch:(NSString *)errorlog {
|
|
NSLog(errorlog);
|
|
|
|
NSNib *nib = [[NSNib alloc] initWithNibNamed:@"ErrorWindow.nib" bundle:[NSBundle mainBundle]];
|
|
[nib instantiateNibWithOwner:self topLevelObjects:nil];
|
|
|
|
[errorWindow makeKeyWindow];
|
|
[errorTextField setFont:[NSFont userFixedPitchFontOfSize:12.0]];
|
|
[errorTextField setString:@""];
|
|
[[errorTextField textStorage] appendAttributedString:[[[NSAttributedString alloc] initWithString:errorlog] autorelease]];
|
|
[errorTextField scrollRangeToVisible:NSMakeRange([[errorTextField string] length], 0)];
|
|
}
|
|
|
|
@end
|