diff --git a/platform/platform-impl/src/com/intellij/execution/process/window/to/foreground/MacBringProcessWindowToForegroundSupport.kt b/platform/platform-impl/src/com/intellij/execution/process/window/to/foreground/MacBringProcessWindowToForegroundSupport.kt index 22b58a4ee784..992e1079293a 100644 --- a/platform/platform-impl/src/com/intellij/execution/process/window/to/foreground/MacBringProcessWindowToForegroundSupport.kt +++ b/platform/platform-impl/src/com/intellij/execution/process/window/to/foreground/MacBringProcessWindowToForegroundSupport.kt @@ -6,7 +6,8 @@ import com.intellij.ui.mac.foundation.Foundation internal class MacBringProcessWindowToForegroundSupport : BringProcessWindowToForegroundSupport { override fun bring(pid: UInt): Boolean { val nsRunningApplicationClass = Foundation.getObjcClass("NSRunningApplication") - val nsApplication = Foundation.invoke(nsRunningApplicationClass, "runningApplicationWithProcessIdentifier:", pid) + val macAcceptableIntPid = pid.toInt() + val nsApplication = Foundation.invoke(nsRunningApplicationClass, "runningApplicationWithProcessIdentifier:", macAcceptableIntPid) return Foundation.invoke(nsApplication, "activateWithOptions:", 1).booleanValue() } } \ No newline at end of file