first copy of the front-end from Ben Wilber. Thanks Ben!
This commit is contained in:
parent
53adde9fb2
commit
d8080d3646
18 changed files with 5821 additions and 0 deletions
19
misc/osxfe/ioquake3fe/ErrorWindow.m
Normal file
19
misc/osxfe/ioquake3fe/ErrorWindow.m
Normal file
|
@ -0,0 +1,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
|
Loading…
Add table
Add a link
Reference in a new issue