Skip to content

Commit bb77070

Browse files
author
Aaron Kardell
committed
first commit
0 parents  commit bb77070

File tree

136 files changed

+6204
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

136 files changed

+6204
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
//
2+
// MockApplicationLauncherAppDelegate.h
3+
// MockApplicationLauncher
4+
//
5+
// Created by Aaron Kardell on 9/8/09.
6+
// Copyright 2009 Performant Design, LLC.
7+
//
8+
// Licensed under the Apache License, Version 2.0 (the "License");
9+
// you may not use this file except in compliance with the License.
10+
// You may obtain a copy of the License at
11+
//
12+
// http://www.apache.org/licenses/LICENSE-2.0
13+
//
14+
// Unless required by applicable law or agreed to in writing, software
15+
// distributed under the License is distributed on an "AS IS" BASIS,
16+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17+
// See the License for the specific language governing permissions and
18+
// limitations under the License.
19+
//
20+
21+
#import <UIKit/UIKit.h>
22+
23+
@class MockApplicationLauncherViewController;
24+
25+
@interface MockApplicationLauncherAppDelegate : NSObject <UIApplicationDelegate> {
26+
UIWindow *window;
27+
MockApplicationLauncherViewController *viewController;
28+
}
29+
30+
@property (nonatomic, retain) IBOutlet UIWindow *window;
31+
@property (nonatomic, retain) IBOutlet MockApplicationLauncherViewController *viewController;
32+
33+
@end
34+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
//
2+
// MockApplicationLauncherAppDelegate.m
3+
// MockApplicationLauncher
4+
//
5+
// Created by Aaron Kardell on 9/8/09.
6+
// Copyright 2009 Performant Design, LLC.
7+
//
8+
// Licensed under the Apache License, Version 2.0 (the "License");
9+
// you may not use this file except in compliance with the License.
10+
// You may obtain a copy of the License at
11+
//
12+
// http://www.apache.org/licenses/LICENSE-2.0
13+
//
14+
// Unless required by applicable law or agreed to in writing, software
15+
// distributed under the License is distributed on an "AS IS" BASIS,
16+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17+
// See the License for the specific language governing permissions and
18+
// limitations under the License.
19+
//
20+
21+
#import "MockApplicationLauncherAppDelegate.h"
22+
#import "MockApplicationLauncherViewController.h"
23+
24+
@implementation MockApplicationLauncherAppDelegate
25+
26+
@synthesize window;
27+
@synthesize viewController;
28+
29+
- (void)applicationDidFinishLaunching:(UIApplication *)application {
30+
// Override point for customization after app launch
31+
[window addSubview:viewController.view];
32+
[window makeKeyAndVisible];
33+
}
34+
35+
- (void)dealloc {
36+
[viewController release];
37+
[window release];
38+
[super dealloc];
39+
}
40+
41+
@end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
//
2+
// MockApplicationLauncherViewController.h
3+
// MockApplicationLauncher
4+
//
5+
// Created by Aaron Kardell on 9/8/09.
6+
// Copyright 2009 Performant Design, LLC.
7+
//
8+
// Licensed under the Apache License, Version 2.0 (the "License");
9+
// you may not use this file except in compliance with the License.
10+
// You may obtain a copy of the License at
11+
//
12+
// http://www.apache.org/licenses/LICENSE-2.0
13+
//
14+
// Unless required by applicable law or agreed to in writing, software
15+
// distributed under the License is distributed on an "AS IS" BASIS,
16+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17+
// See the License for the specific language governing permissions and
18+
// limitations under the License.
19+
//
20+
21+
#import <UIKit/UIKit.h>
22+
23+
@interface MockApplicationLauncherViewController : UIViewController {
24+
25+
}
26+
27+
- (IBAction)getDirectionsTapped;
28+
29+
@end
30+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
//
2+
// MockApplicationLauncherViewController.m
3+
// MockApplicationLauncher
4+
//
5+
// Created by Aaron Kardell on 9/8/09.
6+
// Copyright 2009 Performant Design, LLC.
7+
//
8+
// Licensed under the Apache License, Version 2.0 (the "License");
9+
// you may not use this file except in compliance with the License.
10+
// You may obtain a copy of the License at
11+
//
12+
// http://www.apache.org/licenses/LICENSE-2.0
13+
//
14+
// Unless required by applicable law or agreed to in writing, software
15+
// distributed under the License is distributed on an "AS IS" BASIS,
16+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17+
// See the License for the specific language governing permissions and
18+
// limitations under the License.
19+
//
20+
21+
#import "MockApplicationLauncherViewController.h"
22+
23+
@implementation MockApplicationLauncherViewController
24+
25+
- (void)didReceiveMemoryWarning {
26+
// Releases the view if it doesn't have a superview.
27+
[super didReceiveMemoryWarning];
28+
29+
// Release any cached data, images, etc that aren't in use.
30+
}
31+
32+
- (void)viewDidUnload {
33+
// Release any retained subviews of the main view.
34+
// e.g. self.myOutlet = nil;
35+
}
36+
37+
- (IBAction)getDirectionsTapped {
38+
NSString *urlToLaunch;
39+
40+
#ifdef DEMO
41+
urlToLaunch = @"mockmaps://localhost/";
42+
#else
43+
urlToLaunch = @"http://maps.google.com/maps?saddr=20807+Stevens+Creek+Blvd,+Cupertino,+CA&daddr=22350+Homestead+Rd,+Cupertino,+CA";
44+
#endif
45+
46+
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:urlToLaunch]];
47+
}
48+
49+
- (void)dealloc {
50+
[super dealloc];
51+
}
52+
53+
@end
+218
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,218 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<archive type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="7.10">
3+
<data>
4+
<int key="IBDocument.SystemTarget">768</int>
5+
<string key="IBDocument.SystemVersion">10A288</string>
6+
<string key="IBDocument.InterfaceBuilderVersion">715</string>
7+
<string key="IBDocument.AppKitVersion">1010</string>
8+
<string key="IBDocument.HIToolboxVersion">411.00</string>
9+
<object class="NSMutableDictionary" key="IBDocument.PluginVersions">
10+
<string key="NS.key.0">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
11+
<string key="NS.object.0">46</string>
12+
</object>
13+
<object class="NSMutableArray" key="IBDocument.EditedObjectIDs">
14+
<bool key="EncodedWithXMLCoder">YES</bool>
15+
<integer value="10"/>
16+
</object>
17+
<object class="NSArray" key="IBDocument.PluginDependencies">
18+
<bool key="EncodedWithXMLCoder">YES</bool>
19+
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
20+
</object>
21+
<object class="NSMutableDictionary" key="IBDocument.Metadata">
22+
<bool key="EncodedWithXMLCoder">YES</bool>
23+
<object class="NSArray" key="dict.sortedKeys" id="0">
24+
<bool key="EncodedWithXMLCoder">YES</bool>
25+
</object>
26+
<object class="NSMutableArray" key="dict.values">
27+
<bool key="EncodedWithXMLCoder">YES</bool>
28+
</object>
29+
</object>
30+
<object class="NSMutableArray" key="IBDocument.RootObjects" id="1000">
31+
<bool key="EncodedWithXMLCoder">YES</bool>
32+
<object class="IBProxyObject" id="841351856">
33+
<string key="IBProxiedObjectIdentifier">IBFilesOwner</string>
34+
</object>
35+
<object class="IBProxyObject" id="427554174">
36+
<string key="IBProxiedObjectIdentifier">IBFirstResponder</string>
37+
</object>
38+
<object class="IBUICustomObject" id="664661524"/>
39+
<object class="IBUIViewController" id="943309135">
40+
<string key="IBUINibName">MockApplicationLauncherViewController</string>
41+
<object class="IBUISimulatedStatusBarMetrics" key="IBUISimulatedStatusBarMetrics"/>
42+
</object>
43+
<object class="IBUIWindow" id="117978783">
44+
<nil key="NSNextResponder"/>
45+
<int key="NSvFlags">292</int>
46+
<string key="NSFrameSize">{320, 480}</string>
47+
<object class="NSColor" key="IBUIBackgroundColor">
48+
<int key="NSColorSpace">1</int>
49+
<bytes key="NSRGB">MSAxIDEAA</bytes>
50+
</object>
51+
<bool key="IBUIOpaque">NO</bool>
52+
<bool key="IBUIClearsContextBeforeDrawing">NO</bool>
53+
<object class="IBUISimulatedStatusBarMetrics" key="IBUISimulatedStatusBarMetrics"/>
54+
</object>
55+
</object>
56+
<object class="IBObjectContainer" key="IBDocument.Objects">
57+
<object class="NSMutableArray" key="connectionRecords">
58+
<bool key="EncodedWithXMLCoder">YES</bool>
59+
<object class="IBConnectionRecord">
60+
<object class="IBCocoaTouchOutletConnection" key="connection">
61+
<string key="label">delegate</string>
62+
<reference key="source" ref="841351856"/>
63+
<reference key="destination" ref="664661524"/>
64+
</object>
65+
<int key="connectionID">4</int>
66+
</object>
67+
<object class="IBConnectionRecord">
68+
<object class="IBCocoaTouchOutletConnection" key="connection">
69+
<string key="label">viewController</string>
70+
<reference key="source" ref="664661524"/>
71+
<reference key="destination" ref="943309135"/>
72+
</object>
73+
<int key="connectionID">11</int>
74+
</object>
75+
<object class="IBConnectionRecord">
76+
<object class="IBCocoaTouchOutletConnection" key="connection">
77+
<string key="label">window</string>
78+
<reference key="source" ref="664661524"/>
79+
<reference key="destination" ref="117978783"/>
80+
</object>
81+
<int key="connectionID">14</int>
82+
</object>
83+
</object>
84+
<object class="IBMutableOrderedSet" key="objectRecords">
85+
<object class="NSArray" key="orderedObjects">
86+
<bool key="EncodedWithXMLCoder">YES</bool>
87+
<object class="IBObjectRecord">
88+
<int key="objectID">0</int>
89+
<reference key="object" ref="0"/>
90+
<reference key="children" ref="1000"/>
91+
<nil key="parent"/>
92+
</object>
93+
<object class="IBObjectRecord">
94+
<int key="objectID">-1</int>
95+
<reference key="object" ref="841351856"/>
96+
<reference key="parent" ref="0"/>
97+
<string key="objectName">File's Owner</string>
98+
</object>
99+
<object class="IBObjectRecord">
100+
<int key="objectID">3</int>
101+
<reference key="object" ref="664661524"/>
102+
<reference key="parent" ref="0"/>
103+
<string key="objectName">MockApplicationLauncher App Delegate</string>
104+
</object>
105+
<object class="IBObjectRecord">
106+
<int key="objectID">-2</int>
107+
<reference key="object" ref="427554174"/>
108+
<reference key="parent" ref="0"/>
109+
</object>
110+
<object class="IBObjectRecord">
111+
<int key="objectID">10</int>
112+
<reference key="object" ref="943309135"/>
113+
<reference key="parent" ref="0"/>
114+
</object>
115+
<object class="IBObjectRecord">
116+
<int key="objectID">12</int>
117+
<reference key="object" ref="117978783"/>
118+
<reference key="parent" ref="0"/>
119+
</object>
120+
</object>
121+
</object>
122+
<object class="NSMutableDictionary" key="flattenedProperties">
123+
<bool key="EncodedWithXMLCoder">YES</bool>
124+
<object class="NSArray" key="dict.sortedKeys">
125+
<bool key="EncodedWithXMLCoder">YES</bool>
126+
<string>-1.CustomClassName</string>
127+
<string>-2.CustomClassName</string>
128+
<string>10.CustomClassName</string>
129+
<string>10.IBEditorWindowLastContentRect</string>
130+
<string>10.IBPluginDependency</string>
131+
<string>12.IBEditorWindowLastContentRect</string>
132+
<string>12.IBPluginDependency</string>
133+
<string>3.CustomClassName</string>
134+
<string>3.IBPluginDependency</string>
135+
</object>
136+
<object class="NSMutableArray" key="dict.values">
137+
<bool key="EncodedWithXMLCoder">YES</bool>
138+
<string>UIApplication</string>
139+
<string>UIResponder</string>
140+
<string>MockApplicationLauncherViewController</string>
141+
<string>{{512, 351}, {320, 480}}</string>
142+
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
143+
<string>{{525, 346}, {320, 480}}</string>
144+
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
145+
<string>MockApplicationLauncherAppDelegate</string>
146+
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
147+
</object>
148+
</object>
149+
<object class="NSMutableDictionary" key="unlocalizedProperties">
150+
<bool key="EncodedWithXMLCoder">YES</bool>
151+
<reference key="dict.sortedKeys" ref="0"/>
152+
<object class="NSMutableArray" key="dict.values">
153+
<bool key="EncodedWithXMLCoder">YES</bool>
154+
</object>
155+
</object>
156+
<nil key="activeLocalization"/>
157+
<object class="NSMutableDictionary" key="localizations">
158+
<bool key="EncodedWithXMLCoder">YES</bool>
159+
<reference key="dict.sortedKeys" ref="0"/>
160+
<object class="NSMutableArray" key="dict.values">
161+
<bool key="EncodedWithXMLCoder">YES</bool>
162+
</object>
163+
</object>
164+
<nil key="sourceID"/>
165+
<int key="maxID">14</int>
166+
</object>
167+
<object class="IBClassDescriber" key="IBDocument.Classes">
168+
<object class="NSMutableArray" key="referencedPartialClassDescriptions">
169+
<bool key="EncodedWithXMLCoder">YES</bool>
170+
<object class="IBPartialClassDescription">
171+
<string key="className">MockApplicationLauncherAppDelegate</string>
172+
<string key="superclassName">NSObject</string>
173+
<object class="NSMutableDictionary" key="outlets">
174+
<bool key="EncodedWithXMLCoder">YES</bool>
175+
<object class="NSArray" key="dict.sortedKeys">
176+
<bool key="EncodedWithXMLCoder">YES</bool>
177+
<string>viewController</string>
178+
<string>window</string>
179+
</object>
180+
<object class="NSMutableArray" key="dict.values">
181+
<bool key="EncodedWithXMLCoder">YES</bool>
182+
<string>MockApplicationLauncherViewController</string>
183+
<string>UIWindow</string>
184+
</object>
185+
</object>
186+
<object class="IBClassDescriptionSource" key="sourceIdentifier">
187+
<string key="majorKey">IBProjectSource</string>
188+
<string key="minorKey">Classes/MockApplicationLauncherAppDelegate.h</string>
189+
</object>
190+
</object>
191+
<object class="IBPartialClassDescription">
192+
<string key="className">MockApplicationLauncherAppDelegate</string>
193+
<string key="superclassName">NSObject</string>
194+
<object class="IBClassDescriptionSource" key="sourceIdentifier">
195+
<string key="majorKey">IBUserSource</string>
196+
<string key="minorKey"/>
197+
</object>
198+
</object>
199+
<object class="IBPartialClassDescription">
200+
<string key="className">MockApplicationLauncherViewController</string>
201+
<string key="superclassName">UIViewController</string>
202+
<object class="IBClassDescriptionSource" key="sourceIdentifier">
203+
<string key="majorKey">IBProjectSource</string>
204+
<string key="minorKey">Classes/MockApplicationLauncherViewController.h</string>
205+
</object>
206+
</object>
207+
</object>
208+
</object>
209+
<int key="IBDocument.localizationMode">0</int>
210+
<object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDevelopmentDependencies">
211+
<string key="NS.key.0">com.apple.InterfaceBuilder.CocoaTouchPlugin.InterfaceBuilder3</string>
212+
<integer value="3100" key="NS.object.0"/>
213+
</object>
214+
<bool key="IBDocument.PluginDeclaredDependenciesTrackSystemTargetVersion">YES</bool>
215+
<string key="IBDocument.LastKnownRelativeProjectPath">MockApplicationLauncher.xcodeproj</string>
216+
<int key="IBDocument.defaultPropertyAccessControl">3</int>
217+
</data>
218+
</archive>

0 commit comments

Comments
 (0)