Permalink
Browse files

Adding in main.m for tutorial

  • Loading branch information...
1 parent 9c95c0f commit 7bc9ae478dc6197b7bd8b800292405cbd3cac287 @dlongmuir dlongmuir committed with Nov 11, 2010
Showing with 17 additions and 0 deletions.
  1. +17 −0 tutorial/main.m
View
@@ -0,0 +1,17 @@
+#import <UIKit/UIKit.h>
+#ifdef FRANK
+#include "FrankServer.h"
+static FrankServer *sFrankServer;
+#endif
+
+int main(int argc, char *argv[]) {
+
+ NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
+#ifdef FRANK
+ sFrankServer = [[FrankServer alloc] initWithDefaultBundle];
+ [sFrankServer startServer];
+#endif
+ int retVal = UIApplicationMain(argc, argv, nil, nil);
+ [pool release];
+ return retVal;
+}

0 comments on commit 7bc9ae4

Please sign in to comment.