From 1392f5155a4f7b9ceeae14c5086d64fe1f33fcc8 Mon Sep 17 00:00:00 2001 From: Zachary Waldowski Date: Sun, 27 Oct 2013 02:46:51 -0400 Subject: [PATCH] Replace deprecated GetProcessForPID. --- finish_installation.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; {