As a reminder you can get MacRuby to talk to JS in a webkit instance as shown there:
https://github.com/mattetti/RubyConfX-code/blob/master/ps3controller/demo.rb#L16-18 On Mon, Nov 14, 2011 at 2:20 AM, Michael Pitra <mich...@pitra.at> wrote: > > I have a similar approach in one of my applications: a WebKit view > embedded in a custom window. All code is MacRuby except the custom window, > I only managed to do this in pure Cocoa. The content of the WebKit view is > then rendered by appending HTML content to a string. > > Michael > > > ----- Ursprüngliche Mail ----- > Von: "Rich Morin" <r...@cfcl.com> > An: macruby-devel@lists.macosforge.org > Gesendet: Sonntag, 13. November 2011 18:07:37 > Betreff: [MacRuby-devel] anyone using WebKit to generate dialogs? > > Google SketchUp's WebDialog class allows Ruby plugins to > generate, launch, and support interactive dialogs, using > HTML and JavaScript. Basically, the plugin: > > * sets up some callback code > * generates some HTML (etc) code > * points SketchUp at the HTML > > SketchUp then puts up a window whose layout is specified > by the HTML (etc) code. User actions may be handled by > JavaScript and/or callbacks to the Ruby plugin. > > Although there are some awkward aspects to this approach, > I like the ability to generate dynamic content, use CSS > and jQuery, etc. > > > It looks like WebKit could provide similar capabilities, > using MacRuby as the "back end". I'm curious whether > anyone has been playing with this approach, possibly using > HotCocoa magic to tidy things up. > > -r > -- > http://www.cfcl.com/rdm Rich Morin > http://www.cfcl.com/rdm/resume r...@cfcl.com > http://www.cfcl.com/rdm/weblog +1 650-873-7841 > > Software system design, development, and documentation > _______________________________________________ > MacRuby-devel mailing list > MacRuby-devel@lists.macosforge.org > http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel > _______________________________________________ > MacRuby-devel mailing list > MacRuby-devel@lists.macosforge.org > http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel >
_______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel