2009-03-21 22:55:40 +00:00
|
|
|
#import "ErrorWindow.h"
|
|
|
|
|
|
|
|
@implementation ErrorWindow
|
|
|
|
|
2009-03-22 00:24:40 +00:00
|
|
|
- (void)bitch:(NSString *)errorlog {
|
2009-03-21 22:55:40 +00:00
|
|
|
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
|