comparison src/name/blackcap/exifwasher/Osdep.kt @ 3:19c381c536ec

Code to make it a proper Mac GUI app. Untested!
author David Barts <n5jrn@me.com>
date Wed, 08 Apr 2020 20:29:12 -0700
parents
children
comparison
equal deleted inserted replaced
2:efd9fe2d70d7 3:19c381c536ec
1 /*
2 * OS-dependent code, Mac version.
3 */
4 package name.blackcap.clipman
5
6 import com.apple.eawt.AboutHandler
7 import com.apple.eawt.Application
8 import com.apple.eawt.PreferencesHandler
9
10 fun setMacMenus() {
11 Application.getApplication().run {
12 setAboutHandler(AboutHandler({ showAboutDialog() }))
13 setPreferencesHandler(
14 PreferencesHandler({ settingsDialog.setVisible(true) }))
15 }
16 }