Permalink
Browse files

basic project

  • Loading branch information...
Jesse MacFadyen
Jesse MacFadyen committed Apr 20, 2010
1 parent 7144101 commit 9f8835fe2754f991a947ad2983ecb8ff6a503f8f
@@ -0,0 +1,22 @@
+//
+// CleavageAppDelegate.h
+// Cleavage
+//
+// Created by Jesse MacFadyen on 10-04-19.
+// Copyright Nitobi 2010. All rights reserved.
+//
+
+#import <UIKit/UIKit.h>
+
+@class MainViewController;
+
+@interface CleavageAppDelegate : NSObject <UIApplicationDelegate> {
+ UIWindow *window;
+ MainViewController *mainViewController;
+}
+
+@property (nonatomic, retain) IBOutlet UIWindow *window;
+@property (nonatomic, retain) MainViewController *mainViewController;
+
+@end
+
@@ -0,0 +1,39 @@
+//
+// CleavageAppDelegate.m
+// Cleavage
+//
+// Created by Jesse MacFadyen on 10-04-19.
+// Copyright Nitobi 2010. All rights reserved.
+//
+
+#import "CleavageAppDelegate.h"
+#import "MainViewController.h"
+
+@implementation CleavageAppDelegate
+
+
+@synthesize window;
+@synthesize mainViewController;
+
+
+- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
+
+ MainViewController *aController = [[MainViewController alloc] initWithNibName:@"MainView" bundle:nil];
+ self.mainViewController = aController;
+ [aController release];
+
+ mainViewController.view.frame = [UIScreen mainScreen].applicationFrame;
+ [window addSubview:[mainViewController view]];
+ [window makeKeyAndVisible];
+
+ return YES;
+}
+
+
+- (void)dealloc {
+ [mainViewController release];
+ [window release];
+ [super dealloc];
+}
+
+@end
@@ -0,0 +1,83 @@
+//
+// FlipsideViewController.h
+// Cleavage
+//
+// Created by Jesse MacFadyen on 10-04-19.
+// Copyright Nitobi 2010. All rights reserved.
+//
+
+#import <UIKit/UIKit.h>
+#import <CoreLocation/CoreLocation.h>
+#import <UIKit/UINavigationController.h>
+#import "JSON/JSON.h"
+
+#import "Location.h"
+#import "Device.h"
+#import "Sound.h"
+#import "Contacts.h"
+#import "DebugConsole.h"
+#import "UIControls.h"
+
+#import "InvokedUrlCommand.h"
+
+@class InvokedUrlCommand;
+@class PhoneGapViewController;
+@class Sound;
+@class Contacts;
+@class Console;
+
+
+@protocol FlipsideViewControllerDelegate;
+
+
+@interface FlipsideViewController : UIViewController <UIApplicationDelegate,
+ UIWebViewDelegate,
+ UIAccelerometerDelegate,
+ UINavigationControllerDelegate
+
+ >
+{
+ id <FlipsideViewControllerDelegate> delegate;
+ BOOL autoRotate;
+ IBOutlet UIWebView *webView;
+ NSString *rotateOrientation;
+ NSMutableDictionary *commandObjects;
+ NSDictionary *settings;
+ UIInterfaceOrientation orientationType;
+ NSURL *invokedURL;
+}
+
+@property (nonatomic, retain) NSMutableDictionary *commandObjects;
+@property (nonatomic, retain) NSDictionary *settings;
+@property (nonatomic, retain) NSURL *invokedURL;
+
+@property (nonatomic, assign) id <FlipsideViewControllerDelegate> delegate;
+
+- (IBAction)done;
+- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation) interfaceOrientation;
+- (void)willRotateToInterfaceOrientation: (UIInterfaceOrientation)toInterfaceOrientation duration: (NSTimeInterval)duration;
+- (void)setAutoRotate:(BOOL) shouldRotate;
+- (void)setRotateOrientation:(NSString*) orientation;
+
+// PhoneGap Stuff
+- (void)setWebView:(UIWebView*) theWebView;
+- (id) getCommandInstance:(NSString*)className;
+
+- (BOOL) execute:(InvokedUrlCommand*)command;
+- (NSString*) appURLScheme;
+
+// Static Methods
++ (NSDictionary*)getBundlePlist:(NSString *)plistName;
++ (NSString*) wwwFolderName;
++ (NSString*) pathForResource:(NSString*)resourcepath;
++ (NSString*) phoneGapVersion;
+
+@end
+
+
+
+
+@protocol FlipsideViewControllerDelegate
+- (void)flipsideViewControllerDidFinish:(FlipsideViewController *)controller;
+@end
+
Oops, something went wrong.

0 comments on commit 9f8835f

Please sign in to comment.