mirror of
https://github.com/angryip/ipscan.git
synced 2025-10-26 11:18:17 +00:00
revert mac to carbon for now - MacApplicationMenu needs to be rewritten for cocoa
This commit is contained in:
parent
f70df61a56
commit
cff4d38ee5
BIN
lib/swt-mac.jar
BIN
lib/swt-mac.jar
Binary file not shown.
Binary file not shown.
@ -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];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user