blob: bcb373d78db0b0df6d0a5a7973569b37b3ec7e06 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#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
|