q3rally/engine/misc/osxfe/ioquake3fe/ErrorWindow.m

19 lines
617 B
Mathematica
Raw Normal View History

2011-02-18 14:31:32 +00:00
#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