diff options
author | Keith Packard <keithp@keithp.com> | 2014-06-18 16:18:05 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2014-06-18 16:18:05 -0700 |
commit | 7767a045d446ea2bc5fe1ec98d89274155f956c4 (patch) | |
tree | 4f11607ac36af605d4b0273d38fe0d23812866f8 /micropeak/MicroPeak.java | |
parent | d5bdb1c5974788b9569897435808fd01b04b0c4d (diff) |
macosx: Respond to apple messages in all apps
This connects the callbacks in AltosUIFrame to actually do something
useful with them.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'micropeak/MicroPeak.java')
-rw-r--r-- | micropeak/MicroPeak.java | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/micropeak/MicroPeak.java b/micropeak/MicroPeak.java index d7d393ba..8bdf4b77 100644 --- a/micropeak/MicroPeak.java +++ b/micropeak/MicroPeak.java @@ -190,10 +190,25 @@ public class MicroPeak extends MicroFrame implements ActionListener, ItemListene public void itemStateChanged(ItemEvent e) { } + /* OSXAdapter interfaces */ + public void macosx_file_handler(String path) { + CommandGraph(new File(path)); + } + + public void macosx_quit_handler() { + System.exit(0); + } + + public void macosx_preferences_handler() { + Preferences(); + } + public MicroPeak() { ++number_of_windows; + register_for_macosx_events(); + AltosUIPreferences.set_component(this); container = getContentPane(); |