Skip to content

Support macOs custom views inside of a menu item #298

Description

@damageboy

While not the most common scenario, I'm interested in replicating custom controls inside of a tray menu like this:

Image

If I understand correctly, this can (?) be achieved by overriding the view of the menu item, for example in swift like so:

let menuItem = NSMenuItem()
menuItem.view = NSSlider(value: 0.5, minValue: 0.0, maxValue: 1.0, target: nil, action: nil)
menu.addItem(menuItem)

Is this achievable with muda?

Activity

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

    help wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions