2010-06-17 13:10:45 -04:00
|
|
|
//
|
|
|
|
// NewsBlurAppDelegate.m
|
|
|
|
// NewsBlur
|
|
|
|
//
|
|
|
|
// Created by Samuel Clay on 6/16/10.
|
2010-06-21 17:17:26 -04:00
|
|
|
// Copyright NewsBlur 2010. All rights reserved.
|
2010-06-17 13:10:45 -04:00
|
|
|
//
|
|
|
|
|
|
|
|
#import "NewsBlurAppDelegate.h"
|
|
|
|
#import "NewsBlurViewController.h"
|
2010-06-21 17:17:26 -04:00
|
|
|
#import "FeedDetailViewController.h"
|
2010-06-17 13:10:45 -04:00
|
|
|
|
|
|
|
@implementation NewsBlurAppDelegate
|
|
|
|
|
|
|
|
@synthesize window;
|
2010-06-21 17:17:26 -04:00
|
|
|
@synthesize navigationController;
|
|
|
|
@synthesize feedsViewController;
|
|
|
|
@synthesize feedDetailViewController;
|
2010-06-17 13:10:45 -04:00
|
|
|
|
|
|
|
|
|
|
|
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
|
2010-06-21 17:17:26 -04:00
|
|
|
navigationController.viewControllers = [NSArray arrayWithObject:feedsViewController];
|
2010-06-17 13:10:45 -04:00
|
|
|
|
2010-06-21 17:17:26 -04:00
|
|
|
[window addSubview:navigationController.view];
|
|
|
|
//[window addSubview:feedDetailViewController.view];
|
2010-06-17 13:10:45 -04:00
|
|
|
[window makeKeyAndVisible];
|
|
|
|
return YES;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
- (void)dealloc {
|
2010-06-21 17:17:26 -04:00
|
|
|
[feedsViewController release];
|
|
|
|
[feedDetailViewController release];
|
|
|
|
[navigationController release];
|
2010-06-17 13:10:45 -04:00
|
|
|
[window release];
|
|
|
|
[super dealloc];
|
|
|
|
}
|
|
|
|
|
2010-06-21 17:17:26 -04:00
|
|
|
- (void)loadFeedDetailView {
|
|
|
|
NSLog(@"Loading feed detail view: %@, %@", navigationController, feedDetailViewController);
|
|
|
|
[[self navigationController] pushViewController:feedDetailViewController animated:YES];
|
|
|
|
}
|
|
|
|
|
|
|
|
- (void)hideNavigationBar:(BOOL)animated {
|
|
|
|
[[self navigationController] setNavigationBarHidden:YES animated:animated];
|
|
|
|
}
|
|
|
|
|
|
|
|
- (void)showNavigationBar:(BOOL)animated {
|
|
|
|
[[self navigationController] setNavigationBarHidden:NO animated:animated];
|
|
|
|
}
|
2010-06-17 13:10:45 -04:00
|
|
|
|
|
|
|
@end
|