class documentation

class SometimesBackground: (source)

View In Hierarchy

An application that is sometimes in the background but has a window that, when visible, can own the menubar, become key, etc. However, when that window is closed, we withdraw to the menu bar and continue running in the background, as an accessory.

Method noDockIcon For the duration of this contextmanager, don't show the dock icon or show the main window.
Method someApplicationActivated_ Undocumented
Method someApplicationHidden_ An app was hidden.
Method someSpaceActivated_ Sometimes, fullscreen application stop getting the HUD overlay.
Method someWindowWillClose_ The main window that we're observing will close.
Method startObserving Attach the various callbacks.
Class Variable hideIconOnOtherSpaces Undocumented
Class Variable mainWindow Undocumented
Class Variable onSpaceChange Undocumented
Instance Variable currentlyRegular Undocumented
Instance Variable previouslyActiveApp Undocumented
Instance Variable suppressed Undocumented
@contextmanager
def noDockIcon(self) -> Iterator[None]: (source)

For the duration of this contextmanager, don't show the dock icon or show the main window.

def someApplicationActivated_(self, notification: Any): (source)

Undocumented

def someApplicationHidden_(self, notification: Any): (source)

An app was hidden.

def someSpaceActivated_(self, notification: NSNotification): (source)

Sometimes, fullscreen application stop getting the HUD overlay.

def someWindowWillClose_(self, notification: NSNotification): (source)

The main window that we're observing will close.

def startObserving(self): (source)

Attach the various callbacks.

hideIconOnOtherSpaces: bool = (source)

Undocumented

mainWindow: NSWindow = (source)

Undocumented

onSpaceChange: Callable[[], None] = (source)

Undocumented

currentlyRegular: bool = (source)

Undocumented

previouslyActiveApp: NSRunningApplication = (source)

Undocumented

suppressed: bool = (source)

Undocumented