Skip to content

Commit

Permalink
Version 2.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
vfr committed Sep 24, 2012
1 parent db84c9d commit 5820ca0
Show file tree
Hide file tree
Showing 55 changed files with 1,170 additions and 2,054 deletions.
13 changes: 1 addition & 12 deletions Classes/ReaderAppDelegate.h
@@ -1,6 +1,6 @@
//
// ReaderAppDelegate.h
// Reader v2.5.4
// Reader v2.6.0
//
// Created by Julius Oklamcak on 2011-07-01.
// Copyright © 2011-2012 Julius Oklamcak. All rights reserved.
Expand All @@ -25,17 +25,6 @@

#import <UIKit/UIKit.h>

#import "ReaderDemoController.h"

@interface ReaderAppDelegate : NSObject <UIApplicationDelegate>
{
@private // Instance variables

UIWindow *mainWindow; // Main App Window

UINavigationController *navigationController;

ReaderDemoController *readerDemoController;
}

@end
61 changes: 8 additions & 53 deletions Classes/ReaderAppDelegate.m
@@ -1,6 +1,6 @@
//
// ReaderAppDelegate.m
// Reader v2.5.4
// Reader v2.6.0
//
// Created by Julius Oklamcak on 2011-07-01.
// Copyright © 2011-2012 Julius Oklamcak. All rights reserved.
Expand All @@ -24,33 +24,27 @@
//

#import "ReaderAppDelegate.h"
#import "ReaderDemoController.h"

@implementation ReaderAppDelegate
{
UIWindow *mainWindow; // Main App Window

//#pragma mark Properties
UINavigationController *navigationController;

//@synthesize ;
ReaderDemoController *readerDemoController;
}

#pragma mark UIApplicationDelegate methods

- (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url
{
#ifdef DEBUGX
NSLog(@"%s", __FUNCTION__);
#endif

return NO;
}

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
#ifdef DEBUGX
NSLog(@"%s", __FUNCTION__);
#endif

mainWindow = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];

// [[UIApplication sharedApplication] setStatusBarHidden:YES withAnimation:UIStatusBarAnimationNone];
mainWindow = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; // Main application window

readerDemoController = [[ReaderDemoController alloc] initWithNibName:nil bundle:nil]; // Demo controller

Expand All @@ -69,10 +63,6 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(

- (void)applicationWillResignActive:(UIApplication *)application
{
#ifdef DEBUGX
NSLog(@"%s", __FUNCTION__);
#endif

// Sent when the application is about to move from active to inactive state. This can occur for certain types of
// temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application
// and it begins the transition to the background state. Use this method to pause ongoing tasks, disable timers,
Expand All @@ -81,68 +71,33 @@ - (void)applicationWillResignActive:(UIApplication *)application

- (void)applicationDidEnterBackground:(UIApplication *)application
{
#ifdef DEBUGX
NSLog(@"%s", __FUNCTION__);
#endif

// Use this method to release shared resources, save user data, invalidate timers, and store enough
// application state information to restore your application to its current state in case it is terminated later.
// If your application supports background execution, called instead of applicationWillTerminate: when the user quits.
}

- (void)applicationWillEnterForeground:(UIApplication *)application
{
#ifdef DEBUGX
NSLog(@"%s", __FUNCTION__);
#endif

// Called as part of transition from the background to the inactive state: here you can undo many
// of the changes made on entering the background.
}

- (void)applicationDidBecomeActive:(UIApplication *)application
{
#ifdef DEBUGX
NSLog(@"%s", __FUNCTION__);
#endif

// Restart any tasks that were paused (or not yet started) while the application was inactive.
// If the application was previously in the background, optionally refresh the user interface.
}

- (void)applicationWillTerminate:(UIApplication *)application
{
#ifdef DEBUGX
NSLog(@"%s", __FUNCTION__);
#endif

// Called when the application is about to terminate.
// See also applicationDidEnterBackground:.
}

- (void)applicationDidReceiveMemoryWarning:(UIApplication *)application
{
#ifdef DEBUGX
NSLog(@"%s", __FUNCTION__);
#endif

// Free up as much memory as possible by purging cached data objects that can be recreated
// (or reloaded from disk) later.
}

- (void)dealloc
{
#ifdef DEBUGX
NSLog(@"%s", __FUNCTION__);
#endif

[navigationController release], navigationController = nil;

[readerDemoController release], readerDemoController = nil;

[mainWindow release], mainWindow = nil;

[super dealloc];
}

@end
13 changes: 2 additions & 11 deletions Classes/ReaderBookDelegate.h
@@ -1,6 +1,6 @@
//
// ReaderBookDelegate.h
// Reader v2.5.4
// Reader v2.6.0
//
// Created by Julius Oklamcak on 2011-09-01.
// Copyright © 2011-2012 Julius Oklamcak. All rights reserved.
Expand All @@ -25,15 +25,6 @@

#import <UIKit/UIKit.h>

#import "ReaderViewController.h"

@interface ReaderBookDelegate : NSObject <UIApplicationDelegate, ReaderViewControllerDelegate>
{
@private // Instance variables

UIWindow *mainWindow; // Main App Window

ReaderViewController *readerViewController;
}
@interface ReaderBookDelegate : NSObject <UIApplicationDelegate>

@end
67 changes: 11 additions & 56 deletions Classes/ReaderBookDelegate.m
@@ -1,6 +1,6 @@
//
// ReaderBookDelegate.m
// Reader v2.5.4
// Reader v2.6.0
//
// Created by Julius Oklamcak on 2011-09-01.
// Copyright © 2011-2012 Julius Oklamcak. All rights reserved.
Expand All @@ -24,33 +24,29 @@
//

#import "ReaderBookDelegate.h"
#import "ReaderViewController.h"

@implementation ReaderBookDelegate
@interface ReaderBookDelegate () <ReaderViewControllerDelegate>

@end

//#pragma mark Properties
@implementation ReaderBookDelegate
{
UIWindow *mainWindow; // Main App Window

//@synthesize ;
ReaderViewController *readerViewController;
}

#pragma mark UIApplicationDelegate methods

- (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url
{
#ifdef DEBUGX
NSLog(@"%s", __FUNCTION__);
#endif

return NO;
}

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
#ifdef DEBUGX
NSLog(@"%s", __FUNCTION__);
#endif

mainWindow = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];

// [[UIApplication sharedApplication] setStatusBarHidden:YES withAnimation:UIStatusBarAnimationNone];
mainWindow = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; // Main application window

mainWindow.backgroundColor = [UIColor scrollViewTexturedBackgroundColor]; // Window background color

Expand Down Expand Up @@ -78,10 +74,6 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(

- (void)applicationWillResignActive:(UIApplication *)application
{
#ifdef DEBUGX
NSLog(@"%s", __FUNCTION__);
#endif

// Sent when the application is about to move from active to inactive state. This can occur for certain types of
// temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application
// and it begins the transition to the background state. Use this method to pause ongoing tasks, disable timers,
Expand All @@ -90,76 +82,39 @@ - (void)applicationWillResignActive:(UIApplication *)application

- (void)applicationDidEnterBackground:(UIApplication *)application
{
#ifdef DEBUGX
NSLog(@"%s", __FUNCTION__);
#endif

// Use this method to release shared resources, save user data, invalidate timers, and store enough
// application state information to restore your application to its current state in case it is terminated later.
// If your application supports background execution, called instead of applicationWillTerminate: when the user quits.
}

- (void)applicationWillEnterForeground:(UIApplication *)application
{
#ifdef DEBUGX
NSLog(@"%s", __FUNCTION__);
#endif

// Called as part of transition from the background to the inactive state: here you can undo many
// of the changes made on entering the background.
}

- (void)applicationDidBecomeActive:(UIApplication *)application
{
#ifdef DEBUGX
NSLog(@"%s", __FUNCTION__);
#endif

// Restart any tasks that were paused (or not yet started) while the application was inactive.
// If the application was previously in the background, optionally refresh the user interface.
}

- (void)applicationWillTerminate:(UIApplication *)application
{
#ifdef DEBUGX
NSLog(@"%s", __FUNCTION__);
#endif

// Called when the application is about to terminate.
// See also applicationDidEnterBackground:.
}

- (void)applicationDidReceiveMemoryWarning:(UIApplication *)application
{
#ifdef DEBUGX
NSLog(@"%s", __FUNCTION__);
#endif

// Free up as much memory as possible by purging cached data objects that can be recreated
// (or reloaded from disk) later.
}

- (void)dealloc
{
#ifdef DEBUGX
NSLog(@"%s", __FUNCTION__);
#endif

[readerViewController release], readerViewController = nil;

[mainWindow release], mainWindow = nil;

[super dealloc];
}

#pragma mark ReaderViewControllerDelegate methods

- (void)dismissReaderViewController:(ReaderViewController *)viewController
{
#ifdef DEBUGX
NSLog(@"%s", __FUNCTION__);
#endif

// Do nothing
}

Expand Down
9 changes: 2 additions & 7 deletions Classes/ReaderDemoController.h
@@ -1,6 +1,6 @@
//
// ReaderDemoController.h
// Reader v2.5.4
// Reader v2.6.0
//
// Created by Julius Oklamcak on 2011-07-01.
// Copyright © 2011-2012 Julius Oklamcak. All rights reserved.
Expand All @@ -25,11 +25,6 @@

#import <UIKit/UIKit.h>

#import "ReaderViewController.h"

@interface ReaderDemoController : UIViewController <ReaderViewControllerDelegate>
{
@private // Instance variables
}
@interface ReaderDemoController : UIViewController

@end

0 comments on commit 5820ca0

Please sign in to comment.