Versions in this module Expand all Collapse all v0 v0.3.0 Aug 30, 2026 Changes in this version + var ErrNoSymbol = errors.New("statusitem: no such system symbol") type Item + func (i *Item) SetSymbol(name, description string) error v0.2.0 Aug 30, 2026 Changes in this version type Item + func (i *Item) OnScreen() (bool, error) v0.1.0 Aug 27, 2026 Changes in this version + const MainHopTimeout + var ErrClosed = errors.New("statusitem: status item already removed") + var ErrEmptyTitle = errors.New("statusitem: an empty title would be an invisible status item") + var ErrHasNUL = errors.New("statusitem: title or key equivalent contains a NUL byte") + var ErrKeyNotOneRune = errors.New("statusitem: a key equivalent must be exactly one character") + var ErrNoApplication = errors.New("statusitem: +[NSApplication sharedApplication] returned nil") + var ErrNoButton = errors.New("statusitem: the status item has no button to put a title in") + var ErrNoMainLoop = errors.New(...) + var ErrNoStatusBar = errors.New(...) + var ErrNoTargetClass = errors.New("statusitem: the Objective-C action target class could not be created") + var ErrSeparatorNotEmpty = errors.New(...) + var ErrUnsupported = errors.New("statusitem: unsupported on this platform (darwin only)") + type Item struct + func New(title string, items []MenuItem) (*Item, error) + func (i *Item) Close() error + func (i *Item) SetMenu(items []MenuItem) error + func (i *Item) SetTitle(s string) error + type MenuItem struct + Do func() + Key string + Title string + func (m MenuItem) IsSeparator() bool