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 /altosui/AltosUI.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 'altosui/AltosUI.java')
-rw-r--r-- | altosui/AltosUI.java | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/altosui/AltosUI.java b/altosui/AltosUI.java index 1eb03805..0aa5d03c 100644 --- a/altosui/AltosUI.java +++ b/altosui/AltosUI.java @@ -99,10 +99,25 @@ public class AltosUI extends AltosUIFrame { return b; } + /* OSXAdapter interfaces */ + public void macosx_file_handler(String path) { + process_graph(new File(path)); + } + + public void macosx_quit_handler() { + System.exit(0); + } + + public void macosx_preferences_handler() { + ConfigureAltosUI(); + } + public AltosUI() { load_library(null); + register_for_macosx_events(); + AltosUIPreferences.set_component(this); pane = getContentPane(); |