replacement methods for 10.4 SDK
This commit is contained in:
parent
a1039484e4
commit
e4d110b8b2
|
@ -188,13 +188,22 @@ main(int argc, char **argv)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if (MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_4)
|
||||||
|
[fileClerk removeFileAtPath: myWebRTPath handler:nil];
|
||||||
|
#else
|
||||||
[fileClerk removeItemAtPath: myWebRTPath error: &errorDesc];
|
[fileClerk removeItemAtPath: myWebRTPath error: &errorDesc];
|
||||||
|
#endif
|
||||||
if (errorDesc != nil) {
|
if (errorDesc != nil) {
|
||||||
NSLog(@"failed to unlink old binary file at path: %@ with error: %@", myWebRTPath, errorDesc);
|
NSLog(@"failed to unlink old binary file at path: %@ with error: %@", myWebRTPath, errorDesc);
|
||||||
@throw MakeException(@"Unable To Update", @"Failed preparation for Web Runtime update");
|
@throw MakeException(@"Unable To Update", @"Failed preparation for Web Runtime update");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if (MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_4)
|
||||||
|
[fileClerk copyPath: newWebRTPath toPath: myWebRTPath handler:nil];
|
||||||
|
#else
|
||||||
[fileClerk copyItemAtPath: newWebRTPath toPath: myWebRTPath error: &errorDesc];
|
[fileClerk copyItemAtPath: newWebRTPath toPath: myWebRTPath error: &errorDesc];
|
||||||
|
#endif
|
||||||
|
|
||||||
[fileClerk release];
|
[fileClerk release];
|
||||||
if (errorDesc != nil) {
|
if (errorDesc != nil) {
|
||||||
NSLog(@"failed to copy new webrt file: %@", errorDesc);
|
NSLog(@"failed to copy new webrt file: %@", errorDesc);
|
||||||
|
|
Loading…
Reference in New Issue