diff --git a/finish_installation.m b/finish_installation.m index d60ffbb8..06d7631c 100644 --- a/finish_installation.m +++ b/finish_installation.m @@ -99,10 +99,10 @@ - (void) watchdog:(NSTimer *)aTimer { - ProcessSerialNumber psn; - if (GetProcessForPID(parentprocessid, &psn) == procNotFound) + if (![NSRunningApplication runningApplicationWithProcessIdentifier:parentprocessid]) { [self parentHasQuit]; } +} - (void)showAppIconInDock:(NSTimer *)aTimer; {