summaryrefslogtreecommitdiffstats
path: root/macosx
diff options
context:
space:
mode:
authordynaflash <[email protected]>2009-09-16 15:21:48 +0000
committerdynaflash <[email protected]>2009-09-16 15:21:48 +0000
commit6e73207f495b3ffa5d9b676aade30a65ebf70bd8 (patch)
treeba9a37ce8702a8d0e3809e4eb943b3be581f2fab /macosx
parent118dc2488827cc994696825e2293d48e2dd64dc9 (diff)
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
Diffstat (limited to 'macosx')
-rw-r--r--macosx/HBOutputPanelController.m8
1 files changed, 6 insertions, 2 deletions
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, @"\")"]];