Skip to content

Commit 5dc214a

Browse files
jonathanjonathan
jonathan
authored and
jonathan
committed
Adding AAPL Plotting skeleton project -- includes dependence on libCorePlot-Cocoatouch.a
1 parent f731ce1 commit 5dc214a

19 files changed

+1426
-0
lines changed

examples/AAPLot/AAPLot.xcodeproj/project.pbxproj

+356
Large diffs are not rendered by default.

examples/AAPLot/AAPLot_Prefix.pch

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
//
2+
// Prefix header for all source files of the 'AAPLot' target in the 'AAPLot' project
3+
//
4+
5+
#ifdef __OBJC__
6+
#import <Foundation/Foundation.h>
7+
#import <UIKit/UIKit.h>
8+
#endif
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
//
2+
// AAPLotAppDelegate.h
3+
// AAPLot
4+
//
5+
// Created by Jonathan Saggau on 6/9/09.
6+
// Copyright Sounds Broken inc. 2009. All rights reserved.
7+
//
8+
9+
#import <UIKit/UIKit.h>
10+
11+
@class RootViewController;
12+
13+
@interface AAPLotAppDelegate : NSObject <UIApplicationDelegate> {
14+
UIWindow *window;
15+
RootViewController *rootViewController;
16+
}
17+
18+
@property (nonatomic, retain) IBOutlet UIWindow *window;
19+
@property (nonatomic, retain) IBOutlet RootViewController *rootViewController;
20+
21+
@end
22+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
//
2+
// AAPLotAppDelegate.m
3+
// AAPLot
4+
//
5+
// Created by Jonathan Saggau on 6/9/09.
6+
// Copyright Sounds Broken inc. 2009. All rights reserved.
7+
//
8+
9+
#import "AAPLotAppDelegate.h"
10+
#import "RootViewController.h"
11+
12+
@implementation AAPLotAppDelegate
13+
14+
15+
@synthesize window;
16+
@synthesize rootViewController;
17+
18+
19+
- (void)applicationDidFinishLaunching:(UIApplication *)application {
20+
21+
[window addSubview:[rootViewController view]];
22+
[window makeKeyAndVisible];
23+
}
24+
25+
26+
- (void)dealloc {
27+
[rootViewController release];
28+
[window release];
29+
[super dealloc];
30+
}
31+
32+
@end
+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
//
2+
// FlipsideView.h
3+
// AAPLot
4+
//
5+
// Created by Jonathan Saggau on 6/9/09.
6+
// Copyright Sounds Broken inc. 2009. All rights reserved.
7+
//
8+
9+
#import <UIKit/UIKit.h>
10+
11+
@interface FlipsideView : UIView {
12+
13+
}
14+
15+
@end
+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
//
2+
// FlipsideView.m
3+
// AAPLot
4+
//
5+
// Created by Jonathan Saggau on 6/9/09.
6+
// Copyright Sounds Broken inc. 2009. All rights reserved.
7+
//
8+
9+
#import "FlipsideView.h"
10+
11+
@implementation FlipsideView
12+
13+
14+
- (id)initWithFrame:(CGRect)frame {
15+
if (self = [super initWithFrame:frame]) {
16+
// Initialization code
17+
}
18+
return self;
19+
}
20+
21+
22+
- (void)drawRect:(CGRect)rect {
23+
// Drawing code
24+
}
25+
26+
27+
- (void)dealloc {
28+
[super dealloc];
29+
}
30+
31+
32+
@end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
//
2+
// FlipsideViewController.h
3+
// AAPLot
4+
//
5+
// Created by Jonathan Saggau on 6/9/09.
6+
// Copyright Sounds Broken inc. 2009. All rights reserved.
7+
//
8+
9+
#import <UIKit/UIKit.h>
10+
11+
@interface FlipsideViewController : UIViewController {
12+
13+
}
14+
15+
@end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
//
2+
// FlipsideViewController.m
3+
// AAPLot
4+
//
5+
// Created by Jonathan Saggau on 6/9/09.
6+
// Copyright Sounds Broken inc. 2009. All rights reserved.
7+
//
8+
9+
#import "FlipsideViewController.h"
10+
11+
12+
@implementation FlipsideViewController
13+
14+
15+
- (void)viewDidLoad {
16+
[super viewDidLoad];
17+
self.view.backgroundColor = [UIColor viewFlipsideBackgroundColor];
18+
}
19+
20+
21+
/*
22+
// Override to allow orientations other than the default portrait orientation.
23+
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
24+
// Return YES for supported orientations
25+
return (interfaceOrientation == UIInterfaceOrientationPortrait);
26+
}
27+
*/
28+
29+
30+
- (void)didReceiveMemoryWarning {
31+
[super didReceiveMemoryWarning]; // Releases the view if it doesn't have a superview
32+
// Release anything that's not essential, such as cached data
33+
}
34+
35+
36+
- (void)dealloc {
37+
[super dealloc];
38+
}
39+
40+
41+
@end

examples/AAPLot/Classes/MainView.h

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
//
2+
// MainView.h
3+
// AAPLot
4+
//
5+
// Created by Jonathan Saggau on 6/9/09.
6+
// Copyright Sounds Broken inc. 2009. All rights reserved.
7+
//
8+
9+
#import <UIKit/UIKit.h>
10+
11+
@interface MainView : UIView {
12+
13+
}
14+
15+
@end

examples/AAPLot/Classes/MainView.m

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
//
2+
// MainView.m
3+
// AAPLot
4+
//
5+
// Created by Jonathan Saggau on 6/9/09.
6+
// Copyright Sounds Broken inc. 2009. All rights reserved.
7+
//
8+
9+
#import "MainView.h"
10+
11+
@implementation MainView
12+
13+
14+
- (id)initWithFrame:(CGRect)frame {
15+
if (self = [super initWithFrame:frame]) {
16+
// Initialization code
17+
}
18+
return self;
19+
}
20+
21+
22+
- (void)drawRect:(CGRect)rect {
23+
// Drawing code
24+
}
25+
26+
27+
- (void)dealloc {
28+
[super dealloc];
29+
}
30+
31+
32+
@end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
//
2+
// MainViewController.h
3+
// AAPLot
4+
//
5+
// Created by Jonathan Saggau on 6/9/09.
6+
// Copyright Sounds Broken inc. 2009. All rights reserved.
7+
//
8+
9+
#import <UIKit/UIKit.h>
10+
11+
@interface MainViewController : UIViewController {
12+
13+
}
14+
15+
@end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
//
2+
// MainViewController.m
3+
// AAPLot
4+
//
5+
// Created by Jonathan Saggau on 6/9/09.
6+
// Copyright Sounds Broken inc. 2009. All rights reserved.
7+
//
8+
9+
#import "MainViewController.h"
10+
#import "MainView.h"
11+
12+
@implementation MainViewController
13+
14+
15+
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
16+
if (self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]) {
17+
// Custom initialization
18+
}
19+
return self;
20+
}
21+
22+
23+
/*
24+
// Implement viewDidLoad to do additional setup after loading the view, typically from a nib.
25+
- (void)viewDidLoad {
26+
[super viewDidLoad];
27+
}
28+
*/
29+
30+
31+
/*
32+
// Override to allow orientations other than the default portrait orientation.
33+
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
34+
// Return YES for supported orientations
35+
return (interfaceOrientation == UIInterfaceOrientationPortrait);
36+
}
37+
*/
38+
39+
40+
- (void)didReceiveMemoryWarning {
41+
[super didReceiveMemoryWarning]; // Releases the view if it doesn't have a superview
42+
// Release anything that's not essential, such as cached data
43+
}
44+
45+
46+
- (void)dealloc {
47+
[super dealloc];
48+
}
49+
50+
51+
@end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
//
2+
// RootViewController.h
3+
// AAPLot
4+
//
5+
// Created by Jonathan Saggau on 6/9/09.
6+
// Copyright Sounds Broken inc. 2009. All rights reserved.
7+
//
8+
9+
#import <UIKit/UIKit.h>
10+
11+
@class MainViewController;
12+
@class FlipsideViewController;
13+
14+
@interface RootViewController : UIViewController {
15+
16+
UIButton *infoButton;
17+
MainViewController *mainViewController;
18+
FlipsideViewController *flipsideViewController;
19+
UINavigationBar *flipsideNavigationBar;
20+
}
21+
22+
@property (nonatomic, retain) IBOutlet UIButton *infoButton;
23+
@property (nonatomic, retain) MainViewController *mainViewController;
24+
@property (nonatomic, retain) UINavigationBar *flipsideNavigationBar;
25+
@property (nonatomic, retain) FlipsideViewController *flipsideViewController;
26+
27+
- (IBAction)toggleView;
28+
29+
@end

0 commit comments

Comments
 (0)