Package pycocoa :: Module apps
[frames] | no frames]

Module apps

Types App and Tile, wrapping ObjC NSApplication and NSDocktile.


Version: 25.04.03

Classes
  App
Python App Type, wrapping an ObjC NSApplication.
  Tile
Dock tile for an App, wrapping an ObjC NSDockTile.
Functions
 
app_title(title)
Get/set the app title.
 
ns2App(ns)
Get the App instance from an NSApplication or an NSNotification instance.
Variables
  __all__ = _ALL_LAZY.apps
  NSApplicationDelegate = <ObjCDelegate(_NSApplicationDelegate o...
Function Details

app_title(title)

 

Get/set the app title.

Parameters:
  • title - New title (str).
Returns:
Previous title (str).

ns2App(ns)

 

Get the App instance from an NSApplication or an NSNotification instance.

Parameters:
  • ns - The ObjC instance (NS...).
Returns:
The app instance (App).
Raises:
  • RuntimeError - App mismatch.
  • TypeError - Invalid ns type.

Variables Details

NSApplicationDelegate

Value:
<ObjCDelegate(_NSApplicationDelegate of 0x60000190c900) at 0x7feac04f4\
090>