diff --git a/lib/swt-mac.jar b/lib/swt-mac.jar index d42da959..b15fa2c1 100644 Binary files a/lib/swt-mac.jar and b/lib/swt-mac.jar differ diff --git a/lib/swt-mac64.jar b/lib/swt-mac64.jar deleted file mode 100644 index 228da890..00000000 Binary files a/lib/swt-mac64.jar and /dev/null differ diff --git a/src-platform/mac/net/azib/ipscan/platform/mac/MacApplicationMenu.java b/src-platform/mac/net/azib/ipscan/platform/mac/MacApplicationMenu.java index 63626f9b..9a906913 100644 --- a/src-platform/mac/net/azib/ipscan/platform/mac/MacApplicationMenu.java +++ b/src-platform/mac/net/azib/ipscan/platform/mac/MacApplicationMenu.java @@ -90,7 +90,7 @@ public class MacApplicationMenu implements Startable { } }; final Callback commandCallback = new Callback(target, "commandProc", 3); - int commandProc = commandCallback.getAddress(); + long commandProc = commandCallback.getAddress(); if (commandProc == 0) { commandCallback.dispose(); return; // give up @@ -98,7 +98,7 @@ public class MacApplicationMenu implements Startable { // install event handler for commands int[] mask = new int[] {OS.kEventClassCommand, OS.kEventProcessCommand}; - OS.InstallEventHandler(OS.GetApplicationEventTarget(), commandProc, mask.length / 2, mask, 0, null); + OS.InstallEventHandler(OS.GetApplicationEventTarget(), (int)commandProc, mask.length / 2, mask, 0, null); // create menu commands int[] outMenu = new int[1];