feat: hide running Cocoa receiver from the Dock

This commit is contained in:
Danielle McLean 2025-04-30 12:46:47 +10:00
parent c2f67c4781
commit 28748df3c1
Signed by: 00dani
GPG key ID: 6854781A0488421C
2 changed files with 14 additions and 0 deletions

View file

@ -2,6 +2,16 @@ from typing import Final, Literal
from Foundation import CGSize
NSApplicationActivationPolicyRegular: Final = 0
NSApplicationActivationPolicyAccessory: Final = 1
NSApplicationActivationPolicyProhibited: Final = 2
NSApplicationActivationPolicy = Literal[0, 1, 2]
class NSApplication:
@staticmethod
def sharedApplication() -> NSApplication: ...
def setActivationPolicy_(self, policy: NSApplicationActivationPolicy) -> bool: ...
# There are many other operations available but we only actually use copy, so we don't need all of them here.
NSCompositingOperationClear: Final = 0
NSCompositingOperationCopy: Final = 1