forked from nicklockwood/iNotify
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:demosthenese/iNotify
Conflicts: LICENCE.txt README.txt RELEASE NOTES.txt iNotify/iNotify.h iNotify/iNotify.m
- Loading branch information
Showing
14 changed files
with
6,048 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// | ||
// iNotifyAppDelegate.h | ||
// iNotify | ||
// | ||
// Created by Nick Lockwood on 26/01/2011. | ||
// Copyright 2011 Charcoal Design. All rights reserved. | ||
// | ||
|
||
#import <UIKit/UIKit.h> | ||
|
||
@class iNotifyViewController; | ||
|
||
@interface iNotifyAppDelegate : NSObject <UIApplicationDelegate> { | ||
UIWindow *window; | ||
iNotifyViewController *viewController; | ||
} | ||
|
||
@property (nonatomic, retain) IBOutlet UIWindow *window; | ||
@property (nonatomic, retain) IBOutlet iNotifyViewController *viewController; | ||
|
||
@end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
// | ||
// iNotifyAppDelegate.m | ||
// iNotify | ||
// | ||
// Created by Nick Lockwood on 26/01/2011. | ||
// Copyright 2011 Charcoal Design. All rights reserved. | ||
// | ||
|
||
#import "iNotifyAppDelegate.h" | ||
#import "iNotifyViewController.h" | ||
#import "iNotify.h" | ||
|
||
|
||
@implementation iNotifyAppDelegate | ||
|
||
@synthesize window; | ||
@synthesize viewController; | ||
|
||
|
||
#pragma mark - | ||
#pragma mark Application lifecycle | ||
|
||
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions | ||
{ | ||
// Override point for customization after application launch. | ||
|
||
// Add the view controller's view to the window and display. | ||
[self.window addSubview:viewController.view]; | ||
[self.window makeKeyAndVisible]; | ||
|
||
//iNotify init | ||
[iNotify appLaunched]; | ||
|
||
return YES; | ||
} | ||
|
||
- (void)applicationWillEnterForeground:(UIApplication *)application | ||
{ | ||
//iNotify init | ||
[iNotify appEnteredForeground]; | ||
} | ||
|
||
|
||
#pragma mark - | ||
#pragma mark Memory management | ||
|
||
- (void)dealloc | ||
{ | ||
[viewController release]; | ||
[window release]; | ||
[super dealloc]; | ||
} | ||
|
||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// | ||
// iNotifyViewController.h | ||
// iNotify | ||
// | ||
// Created by Nick Lockwood on 26/01/2011. | ||
// Copyright 2011 Charcoal Design. All rights reserved. | ||
// | ||
|
||
#import <UIKit/UIKit.h> | ||
|
||
@interface iNotifyViewController : UIViewController { | ||
|
||
} | ||
|
||
@end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
// | ||
// iNotifyViewController.m | ||
// iNotify | ||
// | ||
// Created by Nick Lockwood on 26/01/2011. | ||
// Copyright 2011 Charcoal Design. All rights reserved. | ||
// | ||
|
||
#import "iNotifyViewController.h" | ||
|
||
@implementation iNotifyViewController | ||
|
||
|
||
|
||
/* | ||
// The designated initializer. Override to perform setup that is required before the view is loaded. | ||
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil { | ||
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]; | ||
if (self) { | ||
// Custom initialization | ||
} | ||
return self; | ||
} | ||
*/ | ||
|
||
/* | ||
// Implement loadView to create a view hierarchy programmatically, without using a nib. | ||
- (void)loadView { | ||
} | ||
*/ | ||
|
||
|
||
/* | ||
// Implement viewDidLoad to do additional setup after loading the view, typically from a nib. | ||
- (void)viewDidLoad { | ||
[super viewDidLoad]; | ||
} | ||
*/ | ||
|
||
|
||
/* | ||
// Override to allow orientations other than the default portrait orientation. | ||
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { | ||
// Return YES for supported orientations | ||
return (interfaceOrientation == UIInterfaceOrientationPortrait); | ||
} | ||
*/ | ||
|
||
- (void)didReceiveMemoryWarning { | ||
// Releases the view if it doesn't have a superview. | ||
[super didReceiveMemoryWarning]; | ||
|
||
// Release any cached data, images, etc that aren't in use. | ||
} | ||
|
||
- (void)viewDidUnload { | ||
// Release any retained subviews of the main view. | ||
// e.g. self.myOutlet = nil; | ||
} | ||
|
||
|
||
- (void)dealloc { | ||
[super dealloc]; | ||
} | ||
|
||
@end |
Oops, something went wrong.