Popupmenu Plan
✓ Published0🌍 Public
KKevinGutowski
Last edited Dec 24, 2020
Created on Dec 24, 2020
This example shows a macOS status bar popup menu with a search field and selectable items, built using AppKit’s NSMenu, NSMenuItem, NSStatusBarButton, and NSTextField. A custom SMBMenu subclass populates the menu with a text input and action items, while extending NSStatusBarButton overrides mouseDown to highlight the button and display the menu programmatically via popUp(positioning:at:in:). The code relies on AppDelegate selectors for item actions and manages button highlighting through a deinit callback.
AI-generated description