Replace deprecated GetProcessForPID.

This commit is contained in:
Zachary Waldowski authored and Kornel Lesiński committed 2014-06-17 00:53:57 +01:00
1 parent 76ce31f2f6
commit 1392f5155a
1 file changed
+2 -2
+2 -2
View File
@@ -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;
{