diff --git a/macos/QMK Toolbox/AppDelegate.m b/macos/QMK Toolbox/AppDelegate.m index 1d1b9e881e..96ef015fe5 100644 --- a/macos/QMK Toolbox/AppDelegate.m +++ b/macos/QMK Toolbox/AppDelegate.m @@ -46,8 +46,6 @@ - (void)applicationWillFinishLaunching:(NSNotification *)notification { } - (void)applicationDidFinishLaunching:(NSNotification *)aNotification { - [self.window setup]; - self.printer = [[Printing alloc] initWithTextView:self.textView]; self.flasher = [[Flashing alloc] initWithPrinter:self.printer]; self.flasher.delegate = self; diff --git a/macos/QMK Toolbox/QMKWindow.h b/macos/QMK Toolbox/QMKWindow.h index d7a0f2dcae..632a8e7ec5 100644 --- a/macos/QMK Toolbox/QMKWindow.h +++ b/macos/QMK Toolbox/QMKWindow.h @@ -1,5 +1,4 @@ #import @interface QMKWindow : NSWindow -- (void)setup; @end diff --git a/macos/QMK Toolbox/QMKWindow.m b/macos/QMK Toolbox/QMKWindow.m index 6e50804996..42becc8407 100644 --- a/macos/QMK Toolbox/QMKWindow.m +++ b/macos/QMK Toolbox/QMKWindow.m @@ -4,9 +4,9 @@ @implementation QMKWindow -- (void)setup { +- (void)awakeFromNib { [self registerForDraggedTypes:[NSArray arrayWithObject:NSPasteboardTypeFileURL]]; -}; +} - (NSDragOperation)draggingEntered:(id)sender { NSPasteboard *pboard = [sender draggingPasteboard];