Files
RestKit/Examples/RKCatalog/App/RKCatalogAppDelegate.m
Jawwad Ahmad eaa5484b01 Placing opening braces on a new line for methods to match Apple convention. Refs #614
Used uncrustify's "nl_fdef_brace = add" option to detect issues.
2012-06-04 00:36:19 -04:00

40 lines
904 B
Objective-C

//
// RKCatalogAppDelegate.m
// RKCatalog
//
// Created by Blake Watters on 4/21/11.
// Copyright (c) 2009-2012 RestKit. All rights reserved.
//
#import "RKCatalogAppDelegate.h"
#import "RootViewController.h"
NSURL *gRKCatalogBaseURL = nil;
@implementation RKCatalogAppDelegate
@synthesize window;
@synthesize navigationController;
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
// Override point for customization after application launch.
// Add the navigation controller's view to the window and display.
self.window.rootViewController = self.navigationController;
[self.window makeKeyAndVisible];
gRKCatalogBaseURL = [[NSURL alloc] initWithString:@"http://rkcatalog.heroku.com"];
return YES;
}
- (void)dealloc
{
[window release];
[navigationController release];
[super dealloc];
}
@end