These shouldn't be here
This commit is contained in:
@@ -1,17 +0,0 @@
|
|||||||
/* InstallerWindowController */
|
|
||||||
|
|
||||||
#import <Cocoa/Cocoa.h>
|
|
||||||
#import "Helper.h"
|
|
||||||
|
|
||||||
@interface InstallerWindowController : NSWindowController
|
|
||||||
{
|
|
||||||
IBOutlet NSButton *button;
|
|
||||||
IBOutlet NSTextView *textView;
|
|
||||||
BOOL installing;
|
|
||||||
Helper *helper;
|
|
||||||
}
|
|
||||||
- (void)awakeFromNib;
|
|
||||||
- (void)dealloc;
|
|
||||||
- (IBAction)pushedButton:(id)sender;
|
|
||||||
- (void)postMessage:(NSString *)message;
|
|
||||||
@end
|
|
||||||
@@ -1,29 +0,0 @@
|
|||||||
#import "InstallerWindowController.h"
|
|
||||||
|
|
||||||
@implementation InstallerWindowController
|
|
||||||
- (void)awakeFromNib
|
|
||||||
{
|
|
||||||
helper = [[Helper alloc] initWithPath:@"files"];
|
|
||||||
}
|
|
||||||
|
|
||||||
/* This whole method might be unneeded, I can't remember */
|
|
||||||
- (void)dealloc
|
|
||||||
{
|
|
||||||
[helper autorelease];
|
|
||||||
helper = nil;
|
|
||||||
}
|
|
||||||
|
|
||||||
- (IBAction)pushedButton:(id)sender
|
|
||||||
{
|
|
||||||
[sender setEnabled:NO];
|
|
||||||
[NSThread detachNewThreadSelector:@selector(startHelper:) toTarget:helper withObject:self];
|
|
||||||
}
|
|
||||||
|
|
||||||
- (void)postMessage:(NSString *)message
|
|
||||||
{
|
|
||||||
NSString *temp = [NSString stringWithFormat:@"%@\n", message];
|
|
||||||
|
|
||||||
[textView insertText:temp];
|
|
||||||
}
|
|
||||||
|
|
||||||
@end
|
|
||||||
Reference in New Issue
Block a user