Mercurial > cgi-bin > hgweb.cgi > ImagePrep
comparison src/name/blackcap/imageprep/Osdep.kt.mac.osdep @ 19:5fa5d15b4a7b
Attempt to make it a std. app. Builds, sorta runs, needs more work.
author | David Barts <n5jrn@me.com> |
---|---|
date | Fri, 20 Nov 2020 21:38:06 -0800 |
parents | 0bded24f746e |
children | a495f9ea498b |
comparison
equal
deleted
inserted
replaced
18:43884786343e | 19:5fa5d15b4a7b |
---|---|
8 import com.apple.eawt.QuitStrategy | 8 import com.apple.eawt.QuitStrategy |
9 | 9 |
10 fun setMacMenus() { | 10 fun setMacMenus() { |
11 com.apple.eawt.Application.getApplication().run { | 11 com.apple.eawt.Application.getApplication().run { |
12 setAboutHandler(AboutHandler { showAboutDialog() }) | 12 setAboutHandler(AboutHandler { showAboutDialog() }) |
13 setPreferencesHandler( | |
14 PreferencesHandler { Application.settingsDialog.setVisible(true) }) | |
13 setQuitStrategy(QuitStrategy.CLOSE_ALL_WINDOWS) | 15 setQuitStrategy(QuitStrategy.CLOSE_ALL_WINDOWS) |
14 } | 16 } |
15 } | 17 } |