forked from moredip/Frank
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.m.sample
37 lines (28 loc) · 1.05 KB
/
main.m.sample
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//
// main.m
// Chase.Mobi
//
// Created by phodgson on 5/24/10.
// Copyright 2010 ThoughtWorks. See NOTICE file for details.
//
#include "FrankServer.h"
static FrankServer *sFrankServer;
int main(int argc, char *argv[]) {
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
sFrankServer = [[FrankServer alloc] initWithStaticFrankBundleNamed:@"frank_static_resources"];
NSLog( @"Starting up Frank server on port %i", FRANK_SERVER_PORT );
[sFrankServer startServer];
int retVal = UIApplicationMain(argc, argv, nil, nil);
[pool release];
return retVal;
}
/* UNCOMMENT THIS SECTION IF YOU'RE USING MapKit AND YOU ARE SEEING CRASHES IN iOS4
// Work around the issue in iOS 4 where exceptions thrown within a NSInvocation are not catchable.
// This was causing crashes in UIQuery::describeView when trying to dump the DOM w. Symbiote
// see http://groups.google.com/group/uispec/browse_thread/thread/1879741ebae978d/a90001a8956290af
@implementation NSObject (MapKitUISpecHack)
- (id)_mapkit_hasPanoramaID {
return nil;
}
@end
*/