[MacRuby-devel] anyone using WebKit to generate dialogs?

Michael Pitra michael at pitra.at
Sun Nov 13 21:20:42 PST 2011


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" <rdm at cfcl.com>
An: macruby-devel at 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     rdm at cfcl.com
http://www.cfcl.com/rdm/weblog     +1 650-873-7841

Software system design, development, and documentation
_______________________________________________
MacRuby-devel mailing list
MacRuby-devel at lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


More information about the MacRuby-devel mailing list