Inherits from UIResponder
Conforms to UIApplicationDelegate
Declared in OCRAppDelegate.h
OCRAppDelegate.m

Overview

This class is the Application Delegate for KOResume.

Properties

coreDataController

Reference to the core data controller object for KOResume.

@property (nonatomic, strong, readonly) OCRCoreDataController *coreDataController

Declared In

OCRAppDelegate.h

managedObjectContext

The managed object context for KOResume.

@property (nonatomic, strong, readonly) NSManagedObjectContext *managedObjectContext

Declared In

OCRAppDelegate.h

window

The window for KOResume.

@property (strong, nonatomic) UIWindow *window

Declared In

OCRAppDelegate.h

Instance Methods

application:didFinishLaunchingWithOptions:

Invoked by the framework when the launch process is almost done and the app is almost ready to run.

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions

Parameters

application

The UIApplication singleton app object.

launchOptions

An NSDictionary indicating the reason the app was launched (if any).

Return Value

BOOL Always returns YES.

Declared In

OCRAppDelegate.m

applicationDidBecomeActive:

Invoked by the framework when the application has become active.

- (void)applicationDidBecomeActive:(UIApplication *)application

Parameters

application

The UIApplication singleton app object.

Declared In

OCRAppDelegate.m

applicationDidEnterBackground:

Invoked by the framework when the application is put into the background.

- (void)applicationDidEnterBackground:(UIApplication *)application

Parameters

application

The UIApplication singleton app object.

Declared In

OCRAppDelegate.m

applicationDidReceiveMemoryWarning:

Invoked by the framework when the app receives a memory warning from the system.

- (void)applicationDidReceiveMemoryWarning:(UIApplication *)application

Parameters

application

The UIApplication singleton app object.

Declared In

OCRAppDelegate.m

applicationWillEnterForeground:

Invoked by the framework when the app is about to enter foreground.

- (void)applicationWillEnterForeground:(UIApplication *)application

Parameters

application

The UIApplication singleton app object.

Declared In

OCRAppDelegate.m

applicationWillResignActive:

Invoked by the framework when the app is about to become inactive.

- (void)applicationWillResignActive:(UIApplication *)application

Parameters

application

The UIApplication singleton app object.

Declared In

OCRAppDelegate.m

applicationWillTerminate:

Invoked by the framework when the application is about to terminate.

- (void)applicationWillTerminate:(UIApplication *)application

Parameters

application

The UIApplication singleton app object.

Declared In

OCRAppDelegate.m

saveContext

Save any changes made to the NSManagedObjectContext and returns immediately.

- (void)saveContext

Discussion

This method adds the block to the backing queue to run on its own thread - i.e., asynchronously. The method will return to its caller immediately.

Declared In

OCRAppDelegate.h

saveContextAndWait

Save any changes made to the NSManagedObjectContext and return when the operation completes.

- (void)saveContextAndWait

Discussion

This method adds the block to the backing queue to run on its own thread, however does not return until the block is finished executing.

Declared In

OCRAppDelegate.h

showAlertWithMessageAndType:alertType:target:

Display an alert message to the user.

- (void)showAlertWithMessageAndType:(NSString *)aMessage alertType:(NSString *)aType target:(UIViewController *)aTarget

Parameters

aMessage

The message to display.

aType

Alert type to display (typically, Information, Warning, Error).

aTarget

Target viewController for the alert.

Declared In

OCRAppDelegate.h

showErrorWithMessage:target:

Display an alert message to the user indicating Error.

- (void)showErrorWithMessage:(NSString *)theMessage target:(UIViewController *)aTarget

Parameters

theMessage

The message to display.

aTarget

Target viewController for the alert.

Declared In

OCRAppDelegate.h

showWarningWithMessage:target:

Display an alert message for the user indicating Warning.

- (void)showWarningWithMessage:(NSString *)theMessage target:(UIViewController *)aTarget

Parameters

theMessage

The message to display.

aTarget

Target viewController for the alert.

Declared In

OCRAppDelegate.h