The Toga backend for macOS is toga-cocoa.


toga-cocoa requires macOS 11 (Big Sur) or newer.


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

The toga-cocoa backend uses the AppKit Objective-C API, also known as Cocoa.

The native APIs are accessed using Rubicon Objective C.