|Re: My SWT application doesn't work [message #541521 is a reply to message #540234]
||Mon, 21 June 2010 13:01
| Daniel KrÃ¼gler
Registered: July 2009
On 15.06.2010 15:01, Alexandra Niculai wrote:|
> I have an SWT application that I created on Windows and it runs fine. It
> runs also on Ubuntu, but when I try to run it on Mac, it doesn't work.
> Sometimes, I get to see the the application but it doesn't react at all.
> I tried to run it in Eclipse and I always get the following exception:
> at org.eclipse.swt.widgets.Display.updateQuitMenu(Display.java: 4082)
> at org.eclipse.swt.widgets.Shell.setWindowVisible(Shell.java:16 32)
> at org.eclipse.swt.widgets.Shell.setVisible(Shell.java:1563)
> When looking at the source code in Display line 4082, the code there is:
> NSMenu mainmenu = application.mainMenu();
> NSMenuItem appitem = mainmenu.itemAtIndex(0);
> So mainMenu is null.
> I tried to add a menubar to the application but the problem persists.
> I'm using org.eclipse.swt.cocoa.macosx_3.5.2.v3557f.jar.
> Could anyone please help me?
Sorry, I have no MacOS, but I have heard from a colleague a similar
problem. I suggest that you search in the bugzilla entries for
such a problem and to vote for it, if existing. If not existing,
please open a new one.
Greetings from Bremen,
Powered by FUDForum
. Page generated in 0.34352 seconds