Available on crate feature appkit only.
Expand description

A wrapper for NSMenuItem. Currently only supports menus going one level deep; this could change in the future but is fine for now.

Structs

An Action is just an indirection layer to get around Rust and optimizing zero-sum types; without this, pointers to callbacks will end up being 0x1, and all point to whatever is there first (unsure if this is due to Rust or Cocoa or what).

Enums

Represents varying NSMenuItem types - e.g, a separator vs an action. If you need something outside of the stock item types, you can create a Custom variant that supports dispatching a callback on the Rust side of things.