Expand description
day-toolkit-appkit: the macos-appkit backend (DESIGN.md §9). objc2, pure Rust, no shim.
Handle = Retained<NSView>. Containers are flipped NSViews (top-left origin, so Day’s
frames apply directly and survive diffing). One custom target class (DayTarget) forwards
target/action + text-delegate callbacks into the Day event sink, node-id keyed (§8.3).
Re-exports§
pub use ext::*;
Modules§
Structs§
Statics§
- RENDERERS
- Renderers registered by external Day Piece crates (§8.2 layer 3 — linkme convenience).
Functions§
- emit
- Emit an event into day-core’s queue (public: external Day Piece renderers use this too).
- lifecycle_
supported - Which lifecycle phases this desktop backend delivers (docs/lifecycle.md): the universal set.
macOS has no true background/foreground or memory-warning lifecycle.
constsoday::require_lifecycle!can reject unsupported phases at compile time. Must agree with theToolkit::supports_lifecycledefault (which also returnsis_universal). - toolbar_
image - Icon resolution for a piece renderer’s own
NSToolbaritems (seetoolbar::image_for). TheNSImagea toolbar item draws foricon: the SF Symbol for a standard symbol, the staged vector (as a template image) for a bundled one. Public ascrate::toolbar_imagefor the piece renderers that build their ownNSToolbaron a Day window (the settings panel’s preference tabs), so their items resolve icons exactly as Day’s toolbar does.