/***
 * Excerpted from "iOS SDK Development",
 * published by The Pragmatic Bookshelf.
 * Copyrights apply to this code. It may not be used to create training material, 
 * courses, books, articles, and the like. Contact us if you are in doubt.
 * We make no guarantees that this code is fit for any purpose. 
 * Visit http://www.pragmaticprogrammer.com/titles/adios for more book information.
***/
//
//  PRPAppDelegate.m
//  StoryboardRecipes
//
//  Created by Bill Dudney on 9/18/12.
//  Copyright (c) 2012 Pragmatic Programmers LLC. All rights reserved.
//

#import "PRPAppDelegate.h"
#import "PRPRecipesListViewController.h"
#import "PRPRecipesSource.h"

@implementation PRPAppDelegate

//
- (BOOL)application:(UIApplication *)application
didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
  UINavigationController *navigationController =
  (UINavigationController *)self.window.rootViewController;
  PRPRecipesListViewController *controller =
  (PRPRecipesListViewController *)navigationController.topViewController;
  controller.dataSource = [[PRPRecipesSource alloc] init];
  return YES;
}
//

@end
