[MacRuby-devel] anyone using WebKit to generate dialogs?
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.
----- 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
* 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
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.
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
More information about the MacRuby-devel