Friday, 6 September 2013

How to write a native Mac app with an HTML GUI? [on hold]

How to write a native Mac app with an HTML GUI? [on hold]

I'd like to write a native Mac application. Instead of using the standard
Mac GUI library (Cocoa?), though, I'd like to code the GUI using web
technologies (HTML, CSS, Javascript). The main reason for developing with
HTML/CSS/JS is that I'd like to use the d3.js data visualization library.
The app's primary function is to visualize the contents of a large
embedded database.
I've found an answer here on SO that explains how to embed a WebView in a
Cocoa app. This is helpful, but not exactly what I'm looking for. My
WebView doesn't need to access the internet, it just needs to render
HTML/CSS/JS that's generated locally by my app.
I've got some experience writing web apps, but I'm new to mac programming.
Can anyone provide a code snippet that show how I can send HTML/CSS/JS
from a desktop app to an embedded WebView? And is it possible to do this
without running a local webserver?
Thanks in advance for your help!

No comments:

Post a Comment