Fix deprecated usage warning on macOS

This commit is contained in:
2026-04-09 10:48:03 +02:00
parent 60881a74c9
commit a2fadb94fd
+2 -2
View File
@@ -446,10 +446,10 @@ int32 MacPlatform::CreateProcess(CreateProcessSettings& settings)
String exePath = settings.FileName;
{
NSString* processPath = (NSString*)AppleUtils::ToString(exePath);
if (![[NSFileManager defaultManager] fileExistsAtPath: processPath])
if (![[NSFileManager defaultManager] fileExistsAtPath:processPath])
{
NSString* appName = [[processPath lastPathComponent] stringByDeletingPathExtension];
processPath = [[NSWorkspace sharedWorkspace] fullPathForApplication:appName];
processPath = [[[NSWorkspace sharedWorkspace] URLForApplicationWithBundleIdentifier:appName] path];
}
if ([[NSFileManager defaultManager] fileExistsAtPath: processPath])
{