Skip to content

Revisit MenuBarExtra adoption on a later macOS 27 beta #593

Closed

Description

@robinebers

Migrated from robinebers/OpenUsage-Swift#30
Issue numbers like #N in the text below refer to the OpenUsage-Swift issue tracker unless updated.

Context

PR #29 (fixing #25) replaced SwiftUI's MenuBarExtra + MenuBarExtraAccess with an AppDelegate-owned NSStatusItem + NSPopover (StatusItemController), and replaced KeyboardShortcuts.Recorder with a custom click-to-record field (ShortcutRecorderField).

That was forced by two breakages observed on macOS 27.0 beta (build 26A5353q):

  1. Programmatic presentation: MenuBarExtraAccess 1.3.0 opens the popover by simulating a status-item button click (button.performClick). On 27 beta this is a silent no-op — the binding flips but the panel never becomes visible. (Status items are now Window Server-composited; the library already needed a similar fix once for macOS 26, see macOS 26 Compatibility (Changes Under the Hood) orchetect/MenuBarExtraAccess#20.)
  2. Text input: the MenuBarExtra(.window) panel never becomes a proper key window, so first-responder-based controls (the KeyboardShortcuts recorder's NSSearchField) silently receive no key presses.

What to check on later betas / 27.0 release

  • Whether MenuBarExtra(.window) panels can become key windows again (recorder/text input).
  • Whether Apple adds a public API to present a MenuBarExtra programmatically (long-standing requests FB11984872 / FB10185203) — that would remove the need for any bridge.
  • Whether MenuBarExtraAccess ships a 27-compatible release.

Why bother

The AppKit approach works and is the pattern most production menu-bar apps use, so there is no urgency. But MenuBarExtra would remove ~180 lines of AppKit glue (status item, outside-click monitors, observation-driven image updates) if Apple's implementation becomes reliable. Keep the custom recorder either way unless the key-window issue is confirmed fixed.

🤖 Generated with Claude Code

Activity

  1. added
    enhancement
    and removed on Jun 15, 2026
  2. robinebers commented on Jun 24, 2026

    @robinebers
    OwnerAuthor

    This is now fixed in Golden Gate Beta 2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions