Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updated to match later Nimblekit versions #1

Merged
merged 1 commit into from
Oct 12, 2011
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
updated to match later Nimblekit versions using "@synthesize window =…
… _window;"
  • Loading branch information
iclukas committed Oct 12, 2011
commit d53b3bf69264de10b3882d29db6af0dccf2aea8c
38 changes: 19 additions & 19 deletions Classes/ObjC_MixAppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

@implementation ObjC_MixAppDelegate

@synthesize window;
@synthesize window = _window;

// Fancy Fade/Zoom After Load
//*********************************
Expand All @@ -26,9 +26,9 @@ - (void)startupAnimationDone:(NSString *)animationID finished:(NSNumber *)finish

- (void)applicationDidFinishLaunching:(UIApplication *)application {

Nimble *nimble = [[Nimble alloc] initWithRootPage:@"main.html" window:window serial:@"YOUR_SERIAL_HERE"];
Nimble *nimble = [[Nimble alloc] initWithRootPage:@"main.html" window:self.window serial:@"YOUR_SERIAL_HERE"];
[nimble release];
[window makeKeyAndVisible];
[self.window makeKeyAndVisible];
while (!_mainWebViewLoaded) {
[[NSRunLoop currentRunLoop] runUntilDate:[NSDate dateWithTimeIntervalSinceNow:1]];
}
Expand All @@ -39,11 +39,11 @@ - (void)applicationDidFinishLaunching:(UIApplication *)application {
//*********************************
splashView = [[UIImageView alloc] initWithFrame:CGRectMake(0,0, 320, 480)];
splashView.image = [UIImage imageNamed:@"Default.png"];
[window addSubview:splashView];
[window bringSubviewToFront:splashView];
[self.window addSubview:splashView];
[self.window bringSubviewToFront:splashView];
[UIView beginAnimations:nil context:nil];
[UIView setAnimationDuration:2.0];
[UIView setAnimationTransition:UIViewAnimationTransitionNone forView:window cache:YES];
[UIView setAnimationTransition:UIViewAnimationTransitionNone forView:self.window cache:YES];
[UIView setAnimationDelegate:self];
[UIView setAnimationDidStopSelector:@selector(startupAnimationDone:finished:context:)];
splashView.alpha = 0.0;
Expand All @@ -57,7 +57,7 @@ - (void)applicationWillTerminate:(UIApplication *)application
}

- (void)dealloc {
[window release];
[_window release];
[super dealloc];
}

Expand All @@ -76,11 +76,11 @@ - (void)dealloc {
// The device is an iPad.
splashView = [[UIImageView alloc] initWithFrame:CGRectMake(0,0, 768, 1024)];
splashView.image = [UIImage imageNamed:@"Default-Portrait.png"];
[window addSubview:splashView];
[window bringSubviewToFront:splashView];
[self.window addSubview:splashView];
[self.window bringSubviewToFront:splashView];
[UIView beginAnimations:nil context:nil];
[UIView setAnimationDuration:2.0];
[UIView setAnimationTransition:UIViewAnimationTransitionNone forView:window cache:YES];
[UIView setAnimationTransition:UIViewAnimationTransitionNone forView:self.window cache:YES];
[UIView setAnimationDelegate:self];
[UIView setAnimationDidStopSelector:@selector(startupAnimationDone:finished:context:)];
splashView.alpha = 0.0;
Expand All @@ -92,11 +92,11 @@ - (void)dealloc {
// The device is an iPhone or iPod touch.
splashView = [[UIImageView alloc] initWithFrame:CGRectMake(0,0, 320, 480)];
splashView.image = [UIImage imageNamed:@"Default.png"];
[window addSubview:splashView];
[window bringSubviewToFront:splashView];
[self.window addSubview:splashView];
[self.window bringSubviewToFront:splashView];
[UIView beginAnimations:nil context:nil];
[UIView setAnimationDuration:2.0];
[UIView setAnimationTransition:UIViewAnimationTransitionNone forView:window cache:YES];
[UIView setAnimationTransition:UIViewAnimationTransitionNone forView:self.window cache:YES];
[UIView setAnimationDelegate:self];
[UIView setAnimationDidStopSelector:@selector(startupAnimationDone:finished:context:)];
splashView.alpha = 0.0;
Expand All @@ -123,12 +123,12 @@ - (void)dealloc {
if (!iPad) {
splashView = [[UIImageView alloc] initWithFrame:CGRectMake(0,0, 320, 480)];
splashView.image = [UIImage imageNamed:@"Default.png"];
[window addSubview:splashView];
[window bringSubviewToFront:splashView];
[self.window addSubview:splashView];
[self.window bringSubviewToFront:splashView];
[UIView beginAnimations:nil context:nil];
[UIView setAnimationDuration:.5];
[UIView setAnimationCurve:UIViewAnimationCurveEaseIn];
[UIView setAnimationTransition:UIViewAnimationTransitionNone forView:window cache:YES];
[UIView setAnimationTransition:UIViewAnimationTransitionNone forView:self.window cache:YES];
[UIView setAnimationDelegate:self];
[UIView setAnimationDidStopSelector:@selector(startupAnimationDone:finished:context:)];
splashView.alpha = 0.0;
Expand Down Expand Up @@ -175,12 +175,12 @@ - (void)dealloc {

[[UIDevice currentDevice] endGeneratingDeviceOrientationNotifications];

[window addSubview:splashView];
[window bringSubviewToFront:splashView];
[self.window addSubview:splashView];
[self.window bringSubviewToFront:splashView];
[UIView beginAnimations:nil context:nil];
[UIView setAnimationDuration:.5];
[UIView setAnimationCurve:UIViewAnimationCurveEaseIn];
[UIView setAnimationTransition:UIViewAnimationTransitionNone forView:window cache:YES];
[UIView setAnimationTransition:UIViewAnimationTransitionNone forView:self.window cache:YES];
[UIView setAnimationDelegate:self];
[UIView setAnimationDidStopSelector:@selector(startupAnimationDone:finished:context:)];
splashView.alpha = 0.0;
Expand Down