view 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
line wrap: on
line source

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

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

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