beetlebug

Limits on macOS

These parts of Tk and ztk do not work on macOS, or work in a smaller form. Each item names what to use in its place, where a replacement exists.

Commands

  • ztk::recent and ztk::hotkey give an error on macOS. ztk::has recent gives 0.
  • The system has no notification from ztk. ztk::toast shows a short message at the bottom of the window.
  • tk fontchooser shows the font dialog that ztk draws. The font panel of macOS does not open.
  • wm attributes -zoomed and wm state . zoomed keep the value and do not change the window. The green button of the title bar works.
  • An accelerator shows its key in the menu, but the key does not run the item. Bind the key to the command (Keys of the menu items).
  • A native menu does not show the -image, the -font, or the colors of an entry. Tear-off menus do not exist on macOS.

Keys and text

  • The entry and the text widget have no bindings of the Command keys for copy, cut, paste, select all, and undo. Add them with the script of The Command key.
  • The look of AppKit has no small or large control sizes, no vibrant materials behind a window, and no other style of the title bar.

Accessibility

VoiceOver reads the widgets of a window (VoiceOver). It cannot edit the text of an entry or move a scale, and the elements are one flat list in each window, with no groups.

Headless pictures

ztk --headless on a Mac draws with the look and the fonts of Linux, because the headless program has no AppKit theme and no Core Text. Take a picture of a real window to see the look of macOS.

The iOS section has the apps of the iPhone and the iPad, which also need a Mac.