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

Document how to fall back to normal Java/Win/Linux menus #13

Open
msgilligan opened this issue Apr 27, 2016 · 4 comments
Open

Document how to fall back to normal Java/Win/Linux menus #13

msgilligan opened this issue Apr 27, 2016 · 4 comments

Comments

@msgilligan
Copy link
Contributor

How do I write an app that will work on Windows and Linux? It would be nice if there was some documentation or an example of how to fall back to "standard" behavior on systems that are not Mac OS X.

@msgilligan
Copy link
Contributor Author

With the current version it appears MenuToolkit.toolkit() returns null on non-MacOSX systems. I was hoping I'd be able to still have a Windows menu, etc. on the other platforms.

@0x4a616e
Copy link
Contributor

That is currently not so nice, indeed. Maybe I can create some kind of "fallback" toolkit for other platforms that allows you to use at least the window menu... Other things like the "Hide Others", "Show All" menu items will however not be available on other platforms, so I have to think about some fallback solution there and a general interface for MenuToolkit that can be available on all platforms.

@msgilligan
Copy link
Contributor Author

Yeah, I'm thinking that might make sense in some cases. Especially when you are developing on the Mac and don't have much time to test/tweak on the other systems.

In cases where you're making a serious cross-platform app you probably want Windows or Linux-specific integration and don't want to look too much like something originally intended for the Mac.

I think there are two different usage scenarios.Right now, for example, I'm in the early stages of making a a Mac app and would be happy to have consistent (though Mac-like) behavior on the other platforms. Later on I'd probably want to focus on looking more native on Windows and Linux.

@0x4a616e
Copy link
Contributor

I added a new fallback mechanism in the last major update. See #36 for more details. You'll now get a fallback toolkit on other platforms which tries to support as much as possible. The API is not carved in stone yet, so feel free to provide some feedback! :)

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

No branches or pull requests

2 participants