Skip to content

Commit 90fab3f

Browse files
Samuel GoodwinSamuel Goodwin
authored andcommitted
Added initial files.
0 parents  commit 90fab3f

11 files changed

Lines changed: 787 additions & 0 deletions

.gitignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
.DS_Store
2+
*.swp
3+
*~.nib
4+
5+
build
6+
7+
*.pbxuser
8+
*.perspective
9+
*.perspective3
10+
*.mode1v3
11+
*.mode2v3

Classes/FoodAppDelegate.h

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
//
2+
// FoodAppDelegate.h
3+
// Food
4+
//
5+
// Created by Samuel Goodwin on 10/21/08.
6+
// Copyright Goodwinlabs 2008. All rights reserved.
7+
//
8+
9+
#import <UIKit/UIKit.h>
10+
11+
@class FoodViewController;
12+
13+
@interface FoodAppDelegate : NSObject <UIApplicationDelegate> {
14+
UIWindow *window;
15+
FoodViewController *viewController;
16+
}
17+
18+
@property (nonatomic, retain) IBOutlet UIWindow *window;
19+
@property (nonatomic, retain) IBOutlet FoodViewController *viewController;
20+
21+
@end
22+

Classes/FoodAppDelegate.m

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
//
2+
// FoodAppDelegate.m
3+
// Food
4+
//
5+
// Created by Samuel Goodwin on 10/21/08.
6+
// Copyright Goodwinlabs 2008. All rights reserved.
7+
//
8+
9+
#import "FoodAppDelegate.h"
10+
#import "FoodViewController.h"
11+
12+
@implementation FoodAppDelegate
13+
14+
@synthesize window;
15+
@synthesize viewController;
16+
17+
18+
- (void)applicationDidFinishLaunching:(UIApplication *)application {
19+
20+
// Override point for customization after app launch
21+
[window addSubview:viewController.view];
22+
[window makeKeyAndVisible];
23+
}
24+
25+
26+
- (void)dealloc {
27+
[viewController release];
28+
[window release];
29+
[super dealloc];
30+
}
31+
32+
33+
@end

Classes/FoodViewController.h

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
//
2+
// FoodViewController.h
3+
// Food
4+
//
5+
// Created by Samuel Goodwin on 10/21/08.
6+
// Copyright Goodwinlabs 2008. All rights reserved.
7+
//
8+
9+
#import <UIKit/UIKit.h>
10+
11+
@interface FoodViewController : UIViewController {
12+
13+
}
14+
15+
@end
16+

Classes/FoodViewController.m

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
//
2+
// FoodViewController.m
3+
// Food
4+
//
5+
// Created by Samuel Goodwin on 10/21/08.
6+
// Copyright Goodwinlabs 2008. All rights reserved.
7+
//
8+
9+
#import "FoodViewController.h"
10+
11+
@implementation FoodViewController
12+
13+
14+
15+
/*
16+
// Override initWithNibName:bundle: to load the view using a nib file then perform additional customization that is not appropriate for viewDidLoad.
17+
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
18+
if (self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]) {
19+
// Custom initialization
20+
}
21+
return self;
22+
}
23+
*/
24+
25+
/*
26+
// Implement loadView to create a view hierarchy programmatically.
27+
- (void)loadView {
28+
}
29+
*/
30+
31+
32+
/*
33+
// Implement viewDidLoad to do additional setup after loading the view.
34+
- (void)viewDidLoad {
35+
[super viewDidLoad];
36+
}
37+
*/
38+
39+
40+
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
41+
// Return YES for supported orientations
42+
return (interfaceOrientation == UIInterfaceOrientationPortrait);
43+
}
44+
45+
46+
- (void)didReceiveMemoryWarning {
47+
[super didReceiveMemoryWarning]; // Releases the view if it doesn't have a superview
48+
// Release anything that's not essential, such as cached data
49+
}
50+
51+
52+
- (void)dealloc {
53+
[super dealloc];
54+
}
55+
56+
@end

Food.xcodeproj/project.pbxproj

Lines changed: 250 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,250 @@
1+
// !$*UTF8*$!
2+
{
3+
archiveVersion = 1;
4+
classes = {
5+
};
6+
objectVersion = 45;
7+
objects = {
8+
9+
/* Begin PBXBuildFile section */
10+
1D3623260D0F684500981E51 /* FoodAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 1D3623250D0F684500981E51 /* FoodAppDelegate.m */; };
11+
1D60589B0D05DD56006BFB54 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 29B97316FDCFA39411CA2CEA /* main.m */; };
12+
1D60589F0D05DD5A006BFB54 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1D30AB110D05D00D00671497 /* Foundation.framework */; };
13+
1DF5F4E00D08C38300B7A737 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1DF5F4DF0D08C38300B7A737 /* UIKit.framework */; };
14+
288765A50DF7441C002DB57D /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 288765A40DF7441C002DB57D /* CoreGraphics.framework */; };
15+
2899E5220DE3E06400AC0155 /* FoodViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 2899E5210DE3E06400AC0155 /* FoodViewController.xib */; };
16+
28AD733F0D9D9553002E5188 /* MainWindow.xib in Resources */ = {isa = PBXBuildFile; fileRef = 28AD733E0D9D9553002E5188 /* MainWindow.xib */; };
17+
28D7ACF80DDB3853001CB0EB /* FoodViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 28D7ACF70DDB3853001CB0EB /* FoodViewController.m */; };
18+
/* End PBXBuildFile section */
19+
20+
/* Begin PBXFileReference section */
21+
1D30AB110D05D00D00671497 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
22+
1D3623240D0F684500981E51 /* FoodAppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FoodAppDelegate.h; sourceTree = "<group>"; };
23+
1D3623250D0F684500981E51 /* FoodAppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = FoodAppDelegate.m; sourceTree = "<group>"; };
24+
1D6058910D05DD3D006BFB54 /* Food.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Food.app; sourceTree = BUILT_PRODUCTS_DIR; };
25+
1DF5F4DF0D08C38300B7A737 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
26+
288765A40DF7441C002DB57D /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };
27+
2899E5210DE3E06400AC0155 /* FoodViewController.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = FoodViewController.xib; sourceTree = "<group>"; };
28+
28AD733E0D9D9553002E5188 /* MainWindow.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = MainWindow.xib; sourceTree = "<group>"; };
29+
28D7ACF60DDB3853001CB0EB /* FoodViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FoodViewController.h; sourceTree = "<group>"; };
30+
28D7ACF70DDB3853001CB0EB /* FoodViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = FoodViewController.m; sourceTree = "<group>"; };
31+
29B97316FDCFA39411CA2CEA /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
32+
32CA4F630368D1EE00C91783 /* Food_Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Food_Prefix.pch; sourceTree = "<group>"; };
33+
8D1107310486CEB800E47090 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
34+
/* End PBXFileReference section */
35+
36+
/* Begin PBXFrameworksBuildPhase section */
37+
1D60588F0D05DD3D006BFB54 /* Frameworks */ = {
38+
isa = PBXFrameworksBuildPhase;
39+
buildActionMask = 2147483647;
40+
files = (
41+
1D60589F0D05DD5A006BFB54 /* Foundation.framework in Frameworks */,
42+
1DF5F4E00D08C38300B7A737 /* UIKit.framework in Frameworks */,
43+
288765A50DF7441C002DB57D /* CoreGraphics.framework in Frameworks */,
44+
);
45+
runOnlyForDeploymentPostprocessing = 0;
46+
};
47+
/* End PBXFrameworksBuildPhase section */
48+
49+
/* Begin PBXGroup section */
50+
080E96DDFE201D6D7F000001 /* Classes */ = {
51+
isa = PBXGroup;
52+
children = (
53+
1D3623240D0F684500981E51 /* FoodAppDelegate.h */,
54+
1D3623250D0F684500981E51 /* FoodAppDelegate.m */,
55+
28D7ACF60DDB3853001CB0EB /* FoodViewController.h */,
56+
28D7ACF70DDB3853001CB0EB /* FoodViewController.m */,
57+
);
58+
path = Classes;
59+
sourceTree = "<group>";
60+
};
61+
19C28FACFE9D520D11CA2CBB /* Products */ = {
62+
isa = PBXGroup;
63+
children = (
64+
1D6058910D05DD3D006BFB54 /* Food.app */,
65+
);
66+
name = Products;
67+
sourceTree = "<group>";
68+
};
69+
29B97314FDCFA39411CA2CEA /* CustomTemplate */ = {
70+
isa = PBXGroup;
71+
children = (
72+
080E96DDFE201D6D7F000001 /* Classes */,
73+
29B97315FDCFA39411CA2CEA /* Other Sources */,
74+
29B97317FDCFA39411CA2CEA /* Resources */,
75+
29B97323FDCFA39411CA2CEA /* Frameworks */,
76+
19C28FACFE9D520D11CA2CBB /* Products */,
77+
);
78+
name = CustomTemplate;
79+
sourceTree = "<group>";
80+
};
81+
29B97315FDCFA39411CA2CEA /* Other Sources */ = {
82+
isa = PBXGroup;
83+
children = (
84+
32CA4F630368D1EE00C91783 /* Food_Prefix.pch */,
85+
29B97316FDCFA39411CA2CEA /* main.m */,
86+
);
87+
name = "Other Sources";
88+
sourceTree = "<group>";
89+
};
90+
29B97317FDCFA39411CA2CEA /* Resources */ = {
91+
isa = PBXGroup;
92+
children = (
93+
2899E5210DE3E06400AC0155 /* FoodViewController.xib */,
94+
28AD733E0D9D9553002E5188 /* MainWindow.xib */,
95+
8D1107310486CEB800E47090 /* Info.plist */,
96+
);
97+
name = Resources;
98+
sourceTree = "<group>";
99+
};
100+
29B97323FDCFA39411CA2CEA /* Frameworks */ = {
101+
isa = PBXGroup;
102+
children = (
103+
1DF5F4DF0D08C38300B7A737 /* UIKit.framework */,
104+
1D30AB110D05D00D00671497 /* Foundation.framework */,
105+
288765A40DF7441C002DB57D /* CoreGraphics.framework */,
106+
);
107+
name = Frameworks;
108+
sourceTree = "<group>";
109+
};
110+
/* End PBXGroup section */
111+
112+
/* Begin PBXNativeTarget section */
113+
1D6058900D05DD3D006BFB54 /* Food */ = {
114+
isa = PBXNativeTarget;
115+
buildConfigurationList = 1D6058960D05DD3E006BFB54 /* Build configuration list for PBXNativeTarget "Food" */;
116+
buildPhases = (
117+
1D60588D0D05DD3D006BFB54 /* Resources */,
118+
1D60588E0D05DD3D006BFB54 /* Sources */,
119+
1D60588F0D05DD3D006BFB54 /* Frameworks */,
120+
);
121+
buildRules = (
122+
);
123+
dependencies = (
124+
);
125+
name = Food;
126+
productName = Food;
127+
productReference = 1D6058910D05DD3D006BFB54 /* Food.app */;
128+
productType = "com.apple.product-type.application";
129+
};
130+
/* End PBXNativeTarget section */
131+
132+
/* Begin PBXProject section */
133+
29B97313FDCFA39411CA2CEA /* Project object */ = {
134+
isa = PBXProject;
135+
buildConfigurationList = C01FCF4E08A954540054247B /* Build configuration list for PBXProject "Food" */;
136+
compatibilityVersion = "Xcode 3.1";
137+
hasScannedForEncodings = 1;
138+
mainGroup = 29B97314FDCFA39411CA2CEA /* CustomTemplate */;
139+
projectDirPath = "";
140+
projectRoot = "";
141+
targets = (
142+
1D6058900D05DD3D006BFB54 /* Food */,
143+
);
144+
};
145+
/* End PBXProject section */
146+
147+
/* Begin PBXResourcesBuildPhase section */
148+
1D60588D0D05DD3D006BFB54 /* Resources */ = {
149+
isa = PBXResourcesBuildPhase;
150+
buildActionMask = 2147483647;
151+
files = (
152+
28AD733F0D9D9553002E5188 /* MainWindow.xib in Resources */,
153+
2899E5220DE3E06400AC0155 /* FoodViewController.xib in Resources */,
154+
);
155+
runOnlyForDeploymentPostprocessing = 0;
156+
};
157+
/* End PBXResourcesBuildPhase section */
158+
159+
/* Begin PBXSourcesBuildPhase section */
160+
1D60588E0D05DD3D006BFB54 /* Sources */ = {
161+
isa = PBXSourcesBuildPhase;
162+
buildActionMask = 2147483647;
163+
files = (
164+
1D60589B0D05DD56006BFB54 /* main.m in Sources */,
165+
1D3623260D0F684500981E51 /* FoodAppDelegate.m in Sources */,
166+
28D7ACF80DDB3853001CB0EB /* FoodViewController.m in Sources */,
167+
);
168+
runOnlyForDeploymentPostprocessing = 0;
169+
};
170+
/* End PBXSourcesBuildPhase section */
171+
172+
/* Begin XCBuildConfiguration section */
173+
1D6058940D05DD3E006BFB54 /* Debug */ = {
174+
isa = XCBuildConfiguration;
175+
buildSettings = {
176+
ALWAYS_SEARCH_USER_PATHS = NO;
177+
COPY_PHASE_STRIP = NO;
178+
GCC_DYNAMIC_NO_PIC = NO;
179+
GCC_OPTIMIZATION_LEVEL = 0;
180+
GCC_PRECOMPILE_PREFIX_HEADER = YES;
181+
GCC_PREFIX_HEADER = Food_Prefix.pch;
182+
INFOPLIST_FILE = Info.plist;
183+
PRODUCT_NAME = Food;
184+
};
185+
name = Debug;
186+
};
187+
1D6058950D05DD3E006BFB54 /* Release */ = {
188+
isa = XCBuildConfiguration;
189+
buildSettings = {
190+
ALWAYS_SEARCH_USER_PATHS = NO;
191+
COPY_PHASE_STRIP = YES;
192+
GCC_PRECOMPILE_PREFIX_HEADER = YES;
193+
GCC_PREFIX_HEADER = Food_Prefix.pch;
194+
INFOPLIST_FILE = Info.plist;
195+
PRODUCT_NAME = Food;
196+
};
197+
name = Release;
198+
};
199+
C01FCF4F08A954540054247B /* Debug */ = {
200+
isa = XCBuildConfiguration;
201+
buildSettings = {
202+
ARCHS = "$(ARCHS_STANDARD_32_BIT)";
203+
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
204+
GCC_C_LANGUAGE_STANDARD = c99;
205+
GCC_WARN_ABOUT_RETURN_TYPE = YES;
206+
GCC_WARN_UNUSED_VARIABLE = YES;
207+
ONLY_ACTIVE_ARCH = YES;
208+
PREBINDING = NO;
209+
SDKROOT = iphoneos2.1;
210+
};
211+
name = Debug;
212+
};
213+
C01FCF5008A954540054247B /* Release */ = {
214+
isa = XCBuildConfiguration;
215+
buildSettings = {
216+
ARCHS = "$(ARCHS_STANDARD_32_BIT)";
217+
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
218+
GCC_C_LANGUAGE_STANDARD = c99;
219+
GCC_WARN_ABOUT_RETURN_TYPE = YES;
220+
GCC_WARN_UNUSED_VARIABLE = YES;
221+
PREBINDING = NO;
222+
SDKROOT = iphoneos2.1;
223+
};
224+
name = Release;
225+
};
226+
/* End XCBuildConfiguration section */
227+
228+
/* Begin XCConfigurationList section */
229+
1D6058960D05DD3E006BFB54 /* Build configuration list for PBXNativeTarget "Food" */ = {
230+
isa = XCConfigurationList;
231+
buildConfigurations = (
232+
1D6058940D05DD3E006BFB54 /* Debug */,
233+
1D6058950D05DD3E006BFB54 /* Release */,
234+
);
235+
defaultConfigurationIsVisible = 0;
236+
defaultConfigurationName = Release;
237+
};
238+
C01FCF4E08A954540054247B /* Build configuration list for PBXProject "Food" */ = {
239+
isa = XCConfigurationList;
240+
buildConfigurations = (
241+
C01FCF4F08A954540054247B /* Debug */,
242+
C01FCF5008A954540054247B /* Release */,
243+
);
244+
defaultConfigurationIsVisible = 0;
245+
defaultConfigurationName = Release;
246+
};
247+
/* End XCConfigurationList section */
248+
};
249+
rootObject = 29B97313FDCFA39411CA2CEA /* Project object */;
250+
}

0 commit comments

Comments
 (0)