view src/name/blackcap/exifwasher/Osdep.kt.mac.osdep @ 6:aafc9c127c7b

Fix many bugs; get settings (apparently) working.
author David Barts <n5jrn@me.com>
date Thu, 09 Apr 2020 22:29:48 -0700
parents ba5dc14652da
children 0a106e9b91b4
line wrap: on
line source

/*
 * OS-dependent code, Mac version.
 */
package name.blackcap.exifwasher

import com.apple.eawt.AboutHandler
import com.apple.eawt.PreferencesHandler

fun setMacMenus() {
    com.apple.eawt.Application.getApplication().run {
        setAboutHandler(AboutHandler { showAboutDialog() })
        setPreferencesHandler(
            PreferencesHandler { Application.settingsDialog.setVisible(true) })
    }
}