From a5dd1d4b87fea8f5aa76ea4fe421f6ba2bde27a3 Mon Sep 17 00:00:00 2001 From: Chris Hocking Date: Sat, 19 Oct 2024 11:34:36 +1100 Subject: [PATCH] Fixed bug when selecting movies folder on macOS 15 --- Source/Gyroflow/Wrapper Application/AppDelegate.m | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/Gyroflow/Wrapper Application/AppDelegate.m b/Source/Gyroflow/Wrapper Application/AppDelegate.m index 1fa67618..9a94458a 100644 --- a/Source/Gyroflow/Wrapper Application/AppDelegate.m +++ b/Source/Gyroflow/Wrapper Application/AppDelegate.m @@ -270,15 +270,15 @@ - (IBAction)installMotionTemplate:(id)sender { NSAlert *alert = [[[NSAlert alloc] init] autorelease]; alert.alertStyle = NSAlertStyleInformational; alert.messageText = @"Permission Required"; - alert.informativeText = @"Gyroflow Toolbox requires explicit permission to access your Movies folder, to install the Gyroflow Toolbox Final Cut Pro effect.\n\nPlease ensure your Movies folder is selected on the next Open Folder window to continue."; + alert.informativeText = @"Gyroflow Toolbox requires explicit permission to access your '~/Movies' folder, to install the Gyroflow Toolbox Final Cut Pro effect.\n\nPlease ensure your '~/Movies' folder is selected on the next Open Folder window to continue."; [alert beginSheetModalForWindow:self.window completionHandler:^(NSModalResponse result){ //--------------------------------------------------------- // Get the user's Movies directory: //--------------------------------------------------------- NSArray* moviesPaths = NSSearchPathForDirectoriesInDomains(NSMoviesDirectory,NSUserDomainMask, YES); NSString* moviesPath = [moviesPaths objectAtIndex:0]; - NSURL* moviesURL = [NSURL URLWithString:moviesPath]; - + NSURL* moviesURL = [NSURL fileURLWithPath:moviesPath]; + //--------------------------------------------------------- // Display an open panel: //--------------------------------------------------------- @@ -292,7 +292,7 @@ - (IBAction)installMotionTemplate:(id)sender { [panel setMessage:@"Please click 'Grant Access' to allow access to the Movies Folder:"]; [panel beginSheetModalForWindow:self.window completionHandler:^(NSModalResponse result){ if (result != NSModalResponseOK) { - [self showErrorAlertWithMessage:@"An error has occurred." info:@"Please make sure you select your Movies folder, and not another folder."]; + [self showErrorAlertWithMessage:@"An error has occurred." info:@"Please make sure you select your '~/Movies' folder, and not another folder."]; return; } else { NSURL *url = [panel URL];