Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: c080014c15
Fetching contributors…

Cannot retrieve contributors at this time

33 lines (26 sloc) 0.994 kB
//
// main.m
// iPhoneTest2
//
// Created by Patrick Geiller on 12/10/08.
// Copyright __MyCompanyName__ 2008. All rights reserved.
//
#import <UIKit/UIKit.h>
#include "JavascriptCore-dlsym.h"
#include "JSCocoaController.h"
int main(int argc, char *argv[]) {
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
// Fetch JS symbols
[JSCocoaSymbolFetcher populateJavascriptCoreSymbols];
// Load iPhone bridgeSupport
[[BridgeSupportController sharedController] loadBridgeSupport:[NSString stringWithFormat:@"%@/iPhone.bridgesupport", [[NSBundle mainBundle] bundlePath]]];
// Load js class kit
id c = [JSCocoaController sharedController];
// [c evalJSFile:[NSString stringWithFormat:@"%@/class.js", [[NSBundle mainBundle] bundlePath]]];
// Load js main
[c evalJSFile:[NSString stringWithFormat:@"%@/iPhoneMain.js", [[NSBundle mainBundle] bundlePath]]];
// Start app
int retVal = UIApplicationMain(argc, argv, nil, nil);
[pool release];
return retVal;
}
Jump to Line
Something went wrong with that request. Please try again.