Mac OSX Bespin/Skywriter based editor (Desktop)
JavaScript Other
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Application
English.lproj
Tarantula.xcodeproj
.gitignore
BrowserController.h
BrowserController.m
README.md
TTJSMenuItem.h
TTJSMenuItem.m
TTJavaScriptBridge.h
TTJavaScriptBridge.m
Tarantula-Info.plist
TarantulaAppDelegate.h
TarantulaAppDelegate.m
Tarantula_Prefix.pch
WebScriptObject+TTAdditions.h
WebScriptObject+TTAdditions.m
icon.icns
main.m

README.md

Tarantula

Mac OSX Bespin/Skywriter based editor (Desktop). The idea is to enable Bespin access to native file-open/close commands, currently without running a web-server inline. At the moment a JavaScript API is exposed to the Application.

How?

The Application folder of the project contains the actual Desktop-Web-Application, the index.html is automatically loaded. A window.tarantula (or tarantula) object is exposed and allows for the following:

tarantula.beep(); // Beeps - very exiting ;)
tarantula.terminate(); // Terminates the application
var result = tarantula.openPanel(); // Presents user with open dialog
console.log(JSON.stringify(result));

noActionBeep = function() {
  tarantula.beep();
};

var menu = [
  {
    "title": "Tarantula",
    "items": [
      { "title": "About Tarantula", "keyEquivalent": "", "action": noActionBeep },
      { "title": "Quit Tarantula", "keyEquivalent": "q", "action": function() { tarantula.terminate(); } } // Inline function
    ] 
  },
  {
    "title": "File",
    "items": [
      { "title": "New", "keyEquivalent": "n", "action": noActionBeep },
      { "title": "Open", "keyEquivalent": "o", "action": noActionBeep },
      { "title": "Close", "keyEquivalent": "w", "action": noActionBeep }
    ] 
  },
  {
    "title": "Help",
    "items": [
      { "title": "Tarantula Help", "keyEquivalent": "?", "action": noActionBeep },
    ] 
  }
];
tarantula.setApplicationMenu(menu); // sets the application menu

Icon

I found the icon on http://mascot.crystalxp.net/en.id.20182-kavel-spider.html. It's licensed under Creative Commons BY-NC-ND and made by Kavel Inox (http://www.kavel-inox.com/).

Building

Build using 10.6.4 and XCode 3.2.4.