Cocoa meets WebKit for more rapid UI development
COCoa User Interface mockup.
For rapidly building functional Cocoa applications using WebKit (HTML, CSS and JavaScript).
Latest releases from http://hunch.se/cocui/
Cocui will keep itself up to date using Sparkle and requires Mac OS X 10.5 or later.
Everyone love bullet-points:
The Javascript-to-Cocoa bridge enables access to most things, like your NSApplication and your NSWindow.
You can do stuff like this:
<a href="javascript:Win.miniaturize()">Minimize application</a>
and
var window = App.loadWindow({
uri: 'index.html',
rect: { size: { width: 500, height: 400 } }
})
window.makeKeyAndOrderFront();
Native drag and drop is already supported by WebKit.
Development mode enables a series of tools, aiding development:
To enable development mode for a Cocui application, set the boolean defaults key “DevelopmentMode” to true
for.
Example:
$ defaults write my.cocui.app DevelopmentMode -bool yes
You need to restart the native app after changing this key. Afterwards, a new menu item will appear: “Develop”.
When creating new application projects using the Cocui app, DevelopmentMode is already set for you.
You create a new app project by running the Cocui application. Choose a name and a UTI (and optionally a few other things, like icon and document types). Cocui will then create a new project for you and get you going. If you have TextMate or SubEthaEdit, your editor will launch together with your new application.