mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-25 04:47:55 +00:00
Replace deprecated GetProcessForPID.
This commit is contained in:
1 parent
76ce31f2f6
commit
1392f5155a
1 file changed
+2
-2
@@ -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;
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user