Hi Mike,
I think it's great that you're experimenting with this, and I don't
want to throw cold water on the pioneering spirit. But I also don't
want people to get frustrated banging on a problem that's a lot harder
than they may be expecting.
If it were simply a matter of getting the SWT Browser widget to run,
supporting Mac would have been a no brain decision. We like Mac! We
thought shipping with web mode support for Safari was really
important.
The problem in hosted mode is that there's a lot of magic going on
under hood. Getting the hosted browsers to make calls from Java to
JavaScript (and vice-versa) requires a lot of browser-specific low
level mojo. If you want to get an idea of just how much is going on,
you can setup a test like this (disclaimer- I'm typing this a text box
so it's probably not even syntactically correct):
void onModuleLoad() {
bar();
}
native void foo() /*-{
@your.class.Name::bar()();
}-*/;
void bar() {
boolean stopHere = true;
}
Put a breakpoint on the "stopHere" line and you can check out the
trippy call stack from onModuleLoad() to baz().
All this being said, any Safari ninjas with expertise on Safari's
embedding APIs: send me an email, I'd like to talk to you!
Scott Blum
GWT Engineer
On 5/18/06, Mike Aizatsky <mike.aizat...@gmail.com> wrote:
> Hi!
> I've made a substantial progress on using GWT browser on Mac OS X.
> Here's the step by step guide to the things I've discovered so far:
> 1. Download the Mac OS X SWT from http://www.eclipse.org/swt/ . I've
> used the 3.2RC2. Let me know if you try another version and get better
> results
> 2. Download linux version of GWT
> 3. Add swt.jar to a classpath _BEFORE_ the gwt-dev jar
> 4. Add -Djava.library.path=<PATH_TO_SWT_LIBS> -XstartOnFirstThread VM
> options
> Start browser and have fun!
> Remaining problems:
> I didn't manage the embedded browser to do any sort of compilation. Let
> me know if you master this.