Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Working with Macos Specific Menu Items #93

Open
wilsonowilson opened this issue Sep 20, 2021 · 2 comments
Open

Working with Macos Specific Menu Items #93

wilsonowilson opened this issue Sep 20, 2021 · 2 comments

Comments

@wilsonowilson
Copy link

On macOS, there are special menus you can find in most apps with features that aren't application-specific. For example, the "Share" menu item...

Screenshot 2021-09-20 at 14 56 29

...as well as the "Look up" menu item and the recent "Translate" menu item.
Screenshot 2021-09-20 at 14 57 29

I've noticed that Nativeshell already does this to some extent via MenuItemRole. And some menus with children inherit default items.

For example, the Window menu on macOS inherits default window menu items like "Move to [device]"

Screenshot 2021-09-20 at 14 59 36

Even the "Edit" menu inherits a few default menu items, like "Start Dictation" and "Emojis & Symbols"

Screenshot 2021-09-20 at 15 05 50

Is there any way to use other macOS-specific menu items?

@knopp
Copy link
Contributor

knopp commented Sep 20, 2021

I'm not sure if there is easy way to get a NSMenuItem for sharing or whether we'd need to do it "from scratch" using NSSharingService.

@wilsonowilson
Copy link
Author

What about other menus like the Lookup menu. It doesn't just show another menu. It also highlights any selected text. Would this be possible with Nativeshell?

Screenshot 2021-09-20 at 16 03 56

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants