comparison src/name/blackcap/imageprep/Osdep.kt.mac.osdep @ 0:e0efe7848130

Initial commit. Untested!
author David Barts <davidb@stashtea.com>
date Thu, 16 Jul 2020 19:57:23 -0700
parents
children 0bded24f746e
comparison
equal deleted inserted replaced
-1:000000000000 0:e0efe7848130
1 /*
2 * OS-dependent code, Mac version.
3 */
4 package name.blackcap.exifwasher
5
6 import com.apple.eawt.AboutHandler
7 import com.apple.eawt.PreferencesHandler
8 import com.apple.eawt.QuitStrategy
9
10 fun setMacMenus() {
11 com.apple.eawt.Application.getApplication().run {
12 setAboutHandler(AboutHandler { showAboutDialog() })
13 setPreferencesHandler(
14 PreferencesHandler { Application.settingsDialog.setVisible(true) })
15 setQuitStrategy(QuitStrategy.CLOSE_ALL_WINDOWS)
16 }
17 }