From 840ade6a2f5cabba3d5d80b37b60c62a612c7229 Mon Sep 17 00:00:00 2001 From: Damiano Galassi Date: Fri, 24 Mar 2017 14:06:21 +0100 Subject: [PATCH] Workaround some weird AppleScript standard suite issue. Don't include the standard suite for now. --- Classes/SBAppDelegate.m | 10 +++++++--- Queue.sdef | 35 ++++++++++++++++++++++++++++++++++- 2 files changed, 41 insertions(+), 4 deletions(-) diff --git a/Classes/SBAppDelegate.m b/Classes/SBAppDelegate.m index 81ecd10..ef342ba 100644 --- a/Classes/SBAppDelegate.m +++ b/Classes/SBAppDelegate.m @@ -195,8 +195,7 @@ - (IBAction) linkDonate:(id)sender { - [[NSWorkspace sharedWorkspace] openURL: [NSURL - URLWithString:@"https://subler.org/donate.html"]]; + [[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:@"https://subler.org/donate.html"]]; } @end @@ -205,7 +204,12 @@ - (BOOL)application:(NSApplication *)sender delegateHandlesKey:(NSString *)key { - return [key isEqualToString:@"items"]; + if ([key isEqualToString:@"items"]) { + return YES; + } + else { + return NO; + } } - (NSArray *)items diff --git a/Queue.sdef b/Queue.sdef index 4888dc2..262e5b5 100644 --- a/Queue.sdef +++ b/Queue.sdef @@ -1,7 +1,40 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +