From 6e73207f495b3ffa5d9b676aade30a65ebf70bd8 Mon Sep 17 00:00:00 2001 From: dynaflash Date: Wed, 16 Sep 2009 15:21:48 +0000 Subject: MacGui: Replace deprecated -createDirectoryAtPath:attributes: with -createDirectoryAtPath:withIntermediateDirectories:attributes:error: git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2828 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- macosx/HBOutputPanelController.m | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'macosx/HBOutputPanelController.m') diff --git a/macosx/HBOutputPanelController.m b/macosx/HBOutputPanelController.m index f4bdf90da..5ce02ad2d 100644 --- a/macosx/HBOutputPanelController.m +++ b/macosx/HBOutputPanelController.m @@ -138,7 +138,9 @@ if( ![[NSFileManager defaultManager] fileExistsAtPath:encodeLogDirectory] ) { [[NSFileManager defaultManager] createDirectoryAtPath:encodeLogDirectory - attributes:nil]; + withIntermediateDirectories:NO + attributes:nil + error:nil]; } outputLogFileForEncode = [[NSString stringWithFormat:@"%@/%@",encodeLogDirectory,outputDateFileName] retain]; } @@ -257,7 +259,9 @@ if( ![[NSFileManager defaultManager] fileExistsAtPath:encodeLogDirectory] ) { [[NSFileManager defaultManager] createDirectoryAtPath:encodeLogDirectory - attributes:nil]; + withIntermediateDirectories:NO + attributes:nil + error:nil]; } NSAppleScript *myScript = [[NSAppleScript alloc] initWithSource: [NSString stringWithFormat: @"%@%@%@", @"tell application \"Finder\" to open (POSIX file \"", encodeLogDirectory, @"\")"]]; -- cgit v1.2.3