macOS#
The Toga backend for macOS is toga-cocoa.
Prerequisites#
toga-cocoa
requires macOS 10.10 (Yosemite) or newer.
Installation#
toga-cocoa
is installed automatically on macOS machines (machines that report
sys.platform == 'darwin'
), or can be manually installed by running invoking:
$ python -m pip install toga-cocoa
Implementation details#
toga-cocoa
uses the macOS AppKit Objective-C APIs to build apps. It uses Rubicon
Objective-C to provide a bridge to the native
AppKit libraries from Python.