summaryrefslogtreecommitdiff
path: root/micropeak
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2014-06-18 16:18:05 -0700
committerKeith Packard <keithp@keithp.com>2014-06-18 16:18:05 -0700
commit7767a045d446ea2bc5fe1ec98d89274155f956c4 (patch)
tree4f11607ac36af605d4b0273d38fe0d23812866f8 /micropeak
parentd5bdb1c5974788b9569897435808fd01b04b0c4d (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')
-rw-r--r--micropeak/MicroPeak.java15
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();