Skip to content

Commit 21d080c

Browse files
committed
Merge branch 'master' of github.com:xcatsan/iOS-Sample-Code
2 parents 1055e13 + 80d0746 commit 21d080c

29 files changed

+3955
-0
lines changed
+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>UIApplicationExitsOnSuspend</key>
6+
<true/>
7+
<key>CFBundleDevelopmentRegion</key>
8+
<string>English</string>
9+
<key>CFBundleDisplayName</key>
10+
<string>${PRODUCT_NAME}</string>
11+
<key>CFBundleExecutable</key>
12+
<string>${EXECUTABLE_NAME}</string>
13+
<key>CFBundleIconFile</key>
14+
<string></string>
15+
<key>CFBundleIdentifier</key>
16+
<string>com.yourcompany.${PRODUCT_NAME:rfc1034identifier}</string>
17+
<key>CFBundleInfoDictionaryVersion</key>
18+
<string>6.0</string>
19+
<key>CFBundleName</key>
20+
<string>${PRODUCT_NAME}</string>
21+
<key>CFBundlePackageType</key>
22+
<string>APPL</string>
23+
<key>CFBundleSignature</key>
24+
<string>????</string>
25+
<key>CFBundleVersion</key>
26+
<string>1.0</string>
27+
<key>LSRequiresIPhoneOS</key>
28+
<true/>
29+
<key>NSMainNibFile</key>
30+
<string>MainWindow</string>
31+
</dict>
32+
</plist>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>_XCCurrentVersionName</key>
6+
<string>BackgroundImage.xcdatamodel</string>
7+
</dict>
8+
</plist>
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,293 @@
1+
// !$*UTF8*$!
2+
{
3+
archiveVersion = 1;
4+
classes = {
5+
};
6+
objectVersion = 45;
7+
objects = {
8+
9+
/* Begin PBXBuildFile section */
10+
1D3623260D0F684500981E51 /* BackgroundImageAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 1D3623250D0F684500981E51 /* BackgroundImageAppDelegate.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+
28860BE50F44EE6400985440 /* CoreData.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 28860BE40F44EE6400985440 /* CoreData.framework */; };
15+
2892E4100DC94CBA00A64D0F /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2892E40F0DC94CBA00A64D0F /* CoreGraphics.framework */; };
16+
2899E5600DE3E45000AC0155 /* RootViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 2899E55F0DE3E45000AC0155 /* RootViewController.xib */; };
17+
28AD73600D9D9599002E5188 /* MainWindow.xib in Resources */ = {isa = PBXBuildFile; fileRef = 28AD735F0D9D9599002E5188 /* MainWindow.xib */; };
18+
28C286E10D94DF7D0034E888 /* RootViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 28C286E00D94DF7D0034E888 /* RootViewController.m */; };
19+
28D3F202112F7DC200FD0661 /* BackgroundImage.xcdatamodeld in Sources */ = {isa = PBXBuildFile; fileRef = 28D3F201112F7DC200FD0661 /* BackgroundImage.xcdatamodeld */; };
20+
4CD9B56312006E0B009B13B5 /* SubViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 4CD9B56112006E0B009B13B5 /* SubViewController.m */; };
21+
4CD9B56412006E0B009B13B5 /* SubViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 4CD9B56212006E0B009B13B5 /* SubViewController.xib */; };
22+
4CD9B57012006EDD009B13B5 /* sample.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 4CD9B56F12006EDD009B13B5 /* sample.jpg */; };
23+
/* End PBXBuildFile section */
24+
25+
/* Begin PBXFileReference section */
26+
1D30AB110D05D00D00671497 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
27+
1D3623240D0F684500981E51 /* BackgroundImageAppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BackgroundImageAppDelegate.h; sourceTree = "<group>"; };
28+
1D3623250D0F684500981E51 /* BackgroundImageAppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = BackgroundImageAppDelegate.m; sourceTree = "<group>"; };
29+
1D6058910D05DD3D006BFB54 /* BackgroundImage.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = BackgroundImage.app; sourceTree = BUILT_PRODUCTS_DIR; };
30+
1DF5F4DF0D08C38300B7A737 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
31+
28860B760F44E54D00985440 /* BackgroundImage.xcdatamodel */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = wrapper.xcdatamodel; path = BackgroundImage.xcdatamodel; sourceTree = "<group>"; };
32+
28860BE40F44EE6400985440 /* CoreData.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreData.framework; path = System/Library/Frameworks/CoreData.framework; sourceTree = SDKROOT; };
33+
2892E40F0DC94CBA00A64D0F /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };
34+
2899E55F0DE3E45000AC0155 /* RootViewController.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = RootViewController.xib; path = ../RootViewController.xib; sourceTree = "<group>"; };
35+
28A0AAE50D9B0CCF005BE974 /* BackgroundImage_Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BackgroundImage_Prefix.pch; sourceTree = "<group>"; };
36+
28AD735F0D9D9599002E5188 /* MainWindow.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = MainWindow.xib; sourceTree = "<group>"; };
37+
28C286DF0D94DF7D0034E888 /* RootViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RootViewController.h; sourceTree = "<group>"; };
38+
28C286E00D94DF7D0034E888 /* RootViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RootViewController.m; sourceTree = "<group>"; };
39+
29B97316FDCFA39411CA2CEA /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
40+
4CD9B56012006E0B009B13B5 /* SubViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SubViewController.h; sourceTree = "<group>"; };
41+
4CD9B56112006E0B009B13B5 /* SubViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SubViewController.m; sourceTree = "<group>"; };
42+
4CD9B56212006E0B009B13B5 /* SubViewController.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = SubViewController.xib; sourceTree = "<group>"; };
43+
4CD9B56F12006EDD009B13B5 /* sample.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = sample.jpg; sourceTree = "<group>"; };
44+
8D1107310486CEB800E47090 /* BackgroundImage-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "BackgroundImage-Info.plist"; plistStructureDefinitionIdentifier = "com.apple.xcode.plist.structure-definition.iphone.info-plist"; sourceTree = "<group>"; };
45+
/* End PBXFileReference section */
46+
47+
/* Begin PBXFrameworksBuildPhase section */
48+
1D60588F0D05DD3D006BFB54 /* Frameworks */ = {
49+
isa = PBXFrameworksBuildPhase;
50+
buildActionMask = 2147483647;
51+
files = (
52+
1D60589F0D05DD5A006BFB54 /* Foundation.framework in Frameworks */,
53+
1DF5F4E00D08C38300B7A737 /* UIKit.framework in Frameworks */,
54+
2892E4100DC94CBA00A64D0F /* CoreGraphics.framework in Frameworks */,
55+
28860BE50F44EE6400985440 /* CoreData.framework in Frameworks */,
56+
);
57+
runOnlyForDeploymentPostprocessing = 0;
58+
};
59+
/* End PBXFrameworksBuildPhase section */
60+
61+
/* Begin PBXGroup section */
62+
080E96DDFE201D6D7F000001 /* Classes */ = {
63+
isa = PBXGroup;
64+
children = (
65+
28C286DF0D94DF7D0034E888 /* RootViewController.h */,
66+
28C286E00D94DF7D0034E888 /* RootViewController.m */,
67+
2899E55F0DE3E45000AC0155 /* RootViewController.xib */,
68+
1D3623240D0F684500981E51 /* BackgroundImageAppDelegate.h */,
69+
1D3623250D0F684500981E51 /* BackgroundImageAppDelegate.m */,
70+
4CD9B56012006E0B009B13B5 /* SubViewController.h */,
71+
4CD9B56112006E0B009B13B5 /* SubViewController.m */,
72+
4CD9B56212006E0B009B13B5 /* SubViewController.xib */,
73+
);
74+
path = Classes;
75+
sourceTree = "<group>";
76+
};
77+
19C28FACFE9D520D11CA2CBB /* Products */ = {
78+
isa = PBXGroup;
79+
children = (
80+
1D6058910D05DD3D006BFB54 /* BackgroundImage.app */,
81+
);
82+
name = Products;
83+
sourceTree = "<group>";
84+
};
85+
29B97314FDCFA39411CA2CEA /* CustomTemplate */ = {
86+
isa = PBXGroup;
87+
children = (
88+
080E96DDFE201D6D7F000001 /* Classes */,
89+
29B97315FDCFA39411CA2CEA /* Other Sources */,
90+
29B97317FDCFA39411CA2CEA /* Resources */,
91+
29B97323FDCFA39411CA2CEA /* Frameworks */,
92+
19C28FACFE9D520D11CA2CBB /* Products */,
93+
);
94+
name = CustomTemplate;
95+
sourceTree = "<group>";
96+
};
97+
29B97315FDCFA39411CA2CEA /* Other Sources */ = {
98+
isa = PBXGroup;
99+
children = (
100+
28A0AAE50D9B0CCF005BE974 /* BackgroundImage_Prefix.pch */,
101+
29B97316FDCFA39411CA2CEA /* main.m */,
102+
);
103+
name = "Other Sources";
104+
sourceTree = "<group>";
105+
};
106+
29B97317FDCFA39411CA2CEA /* Resources */ = {
107+
isa = PBXGroup;
108+
children = (
109+
4CD9B56F12006EDD009B13B5 /* sample.jpg */,
110+
28D3F201112F7DC200FD0661 /* BackgroundImage.xcdatamodeld */,
111+
28AD735F0D9D9599002E5188 /* MainWindow.xib */,
112+
8D1107310486CEB800E47090 /* BackgroundImage-Info.plist */,
113+
);
114+
name = Resources;
115+
sourceTree = "<group>";
116+
};
117+
29B97323FDCFA39411CA2CEA /* Frameworks */ = {
118+
isa = PBXGroup;
119+
children = (
120+
1DF5F4DF0D08C38300B7A737 /* UIKit.framework */,
121+
1D30AB110D05D00D00671497 /* Foundation.framework */,
122+
2892E40F0DC94CBA00A64D0F /* CoreGraphics.framework */,
123+
28860BE40F44EE6400985440 /* CoreData.framework */,
124+
);
125+
name = Frameworks;
126+
sourceTree = "<group>";
127+
};
128+
/* End PBXGroup section */
129+
130+
/* Begin PBXNativeTarget section */
131+
1D6058900D05DD3D006BFB54 /* BackgroundImage */ = {
132+
isa = PBXNativeTarget;
133+
buildConfigurationList = 1D6058960D05DD3E006BFB54 /* Build configuration list for PBXNativeTarget "BackgroundImage" */;
134+
buildPhases = (
135+
1D60588D0D05DD3D006BFB54 /* Resources */,
136+
1D60588E0D05DD3D006BFB54 /* Sources */,
137+
1D60588F0D05DD3D006BFB54 /* Frameworks */,
138+
);
139+
buildRules = (
140+
);
141+
dependencies = (
142+
);
143+
name = BackgroundImage;
144+
productName = BackgroundImage;
145+
productReference = 1D6058910D05DD3D006BFB54 /* BackgroundImage.app */;
146+
productType = "com.apple.product-type.application";
147+
};
148+
/* End PBXNativeTarget section */
149+
150+
/* Begin PBXProject section */
151+
29B97313FDCFA39411CA2CEA /* Project object */ = {
152+
isa = PBXProject;
153+
buildConfigurationList = C01FCF4E08A954540054247B /* Build configuration list for PBXProject "BackgroundImage" */;
154+
compatibilityVersion = "Xcode 3.1";
155+
hasScannedForEncodings = 1;
156+
knownRegions = (
157+
English,
158+
Japanese,
159+
French,
160+
German,
161+
en,
162+
);
163+
mainGroup = 29B97314FDCFA39411CA2CEA /* CustomTemplate */;
164+
projectDirPath = "";
165+
projectRoot = "";
166+
targets = (
167+
1D6058900D05DD3D006BFB54 /* BackgroundImage */,
168+
);
169+
};
170+
/* End PBXProject section */
171+
172+
/* Begin PBXResourcesBuildPhase section */
173+
1D60588D0D05DD3D006BFB54 /* Resources */ = {
174+
isa = PBXResourcesBuildPhase;
175+
buildActionMask = 2147483647;
176+
files = (
177+
28AD73600D9D9599002E5188 /* MainWindow.xib in Resources */,
178+
2899E5600DE3E45000AC0155 /* RootViewController.xib in Resources */,
179+
4CD9B56412006E0B009B13B5 /* SubViewController.xib in Resources */,
180+
4CD9B57012006EDD009B13B5 /* sample.jpg in Resources */,
181+
);
182+
runOnlyForDeploymentPostprocessing = 0;
183+
};
184+
/* End PBXResourcesBuildPhase section */
185+
186+
/* Begin PBXSourcesBuildPhase section */
187+
1D60588E0D05DD3D006BFB54 /* Sources */ = {
188+
isa = PBXSourcesBuildPhase;
189+
buildActionMask = 2147483647;
190+
files = (
191+
1D60589B0D05DD56006BFB54 /* main.m in Sources */,
192+
1D3623260D0F684500981E51 /* BackgroundImageAppDelegate.m in Sources */,
193+
28C286E10D94DF7D0034E888 /* RootViewController.m in Sources */,
194+
28D3F202112F7DC200FD0661 /* BackgroundImage.xcdatamodeld in Sources */,
195+
4CD9B56312006E0B009B13B5 /* SubViewController.m in Sources */,
196+
);
197+
runOnlyForDeploymentPostprocessing = 0;
198+
};
199+
/* End PBXSourcesBuildPhase section */
200+
201+
/* Begin XCBuildConfiguration section */
202+
1D6058940D05DD3E006BFB54 /* Debug */ = {
203+
isa = XCBuildConfiguration;
204+
buildSettings = {
205+
ALWAYS_SEARCH_USER_PATHS = NO;
206+
COPY_PHASE_STRIP = NO;
207+
GCC_DYNAMIC_NO_PIC = NO;
208+
GCC_OPTIMIZATION_LEVEL = 0;
209+
GCC_PRECOMPILE_PREFIX_HEADER = YES;
210+
GCC_PREFIX_HEADER = BackgroundImage_Prefix.pch;
211+
INFOPLIST_FILE = "BackgroundImage-Info.plist";
212+
PRODUCT_NAME = BackgroundImage;
213+
};
214+
name = Debug;
215+
};
216+
1D6058950D05DD3E006BFB54 /* Release */ = {
217+
isa = XCBuildConfiguration;
218+
buildSettings = {
219+
ALWAYS_SEARCH_USER_PATHS = NO;
220+
COPY_PHASE_STRIP = YES;
221+
GCC_PRECOMPILE_PREFIX_HEADER = YES;
222+
GCC_PREFIX_HEADER = BackgroundImage_Prefix.pch;
223+
INFOPLIST_FILE = "BackgroundImage-Info.plist";
224+
PRODUCT_NAME = BackgroundImage;
225+
VALIDATE_PRODUCT = YES;
226+
};
227+
name = Release;
228+
};
229+
C01FCF4F08A954540054247B /* Debug */ = {
230+
isa = XCBuildConfiguration;
231+
buildSettings = {
232+
ARCHS = "$(ARCHS_STANDARD_32_BIT)";
233+
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
234+
GCC_C_LANGUAGE_STANDARD = c99;
235+
GCC_WARN_ABOUT_RETURN_TYPE = YES;
236+
GCC_WARN_UNUSED_VARIABLE = YES;
237+
PREBINDING = NO;
238+
SDKROOT = iphoneos4.0;
239+
};
240+
name = Debug;
241+
};
242+
C01FCF5008A954540054247B /* Release */ = {
243+
isa = XCBuildConfiguration;
244+
buildSettings = {
245+
ARCHS = "$(ARCHS_STANDARD_32_BIT)";
246+
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
247+
GCC_C_LANGUAGE_STANDARD = c99;
248+
GCC_WARN_ABOUT_RETURN_TYPE = YES;
249+
GCC_WARN_UNUSED_VARIABLE = YES;
250+
OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1";
251+
PREBINDING = NO;
252+
SDKROOT = iphoneos4.0;
253+
};
254+
name = Release;
255+
};
256+
/* End XCBuildConfiguration section */
257+
258+
/* Begin XCConfigurationList section */
259+
1D6058960D05DD3E006BFB54 /* Build configuration list for PBXNativeTarget "BackgroundImage" */ = {
260+
isa = XCConfigurationList;
261+
buildConfigurations = (
262+
1D6058940D05DD3E006BFB54 /* Debug */,
263+
1D6058950D05DD3E006BFB54 /* Release */,
264+
);
265+
defaultConfigurationIsVisible = 0;
266+
defaultConfigurationName = Release;
267+
};
268+
C01FCF4E08A954540054247B /* Build configuration list for PBXProject "BackgroundImage" */ = {
269+
isa = XCConfigurationList;
270+
buildConfigurations = (
271+
C01FCF4F08A954540054247B /* Debug */,
272+
C01FCF5008A954540054247B /* Release */,
273+
);
274+
defaultConfigurationIsVisible = 0;
275+
defaultConfigurationName = Release;
276+
};
277+
/* End XCConfigurationList section */
278+
279+
/* Begin XCVersionGroup section */
280+
28D3F201112F7DC200FD0661 /* BackgroundImage.xcdatamodeld */ = {
281+
isa = XCVersionGroup;
282+
children = (
283+
28860B760F44E54D00985440 /* BackgroundImage.xcdatamodel */,
284+
);
285+
currentVersion = 28860B760F44E54D00985440 /* BackgroundImage.xcdatamodel */;
286+
path = BackgroundImage.xcdatamodeld;
287+
sourceTree = "<group>";
288+
versionGroupType = wrapper.xcdatamodel;
289+
};
290+
/* End XCVersionGroup section */
291+
};
292+
rootObject = 29B97313FDCFA39411CA2CEA /* Project object */;
293+
}
+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
//
2+
// Prefix header for all source files of the 'BackgroundImage' target in the 'BackgroundImage' project
3+
//
4+
5+
#import <Availability.h>
6+
7+
#ifndef __IPHONE_3_0
8+
#warning "This project uses features only available in iPhone SDK 3.0 and later."
9+
#endif
10+
11+
12+
#ifdef __OBJC__
13+
#import <Foundation/Foundation.h>
14+
#import <UIKit/UIKit.h>
15+
#import <CoreData/CoreData.h>
16+
#endif
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
//
2+
// BackgroundImageAppDelegate.h
3+
// BackgroundImage
4+
//
5+
// Created by Hiroshi Hashiguchi on 10/07/28.
6+
// Copyright Hiroshi Hashiguchi 2010. All rights reserved.
7+
//
8+
9+
#import <UIKit/UIKit.h>
10+
#import <CoreData/CoreData.h>
11+
12+
@interface BackgroundImageAppDelegate : NSObject <UIApplicationDelegate> {
13+
14+
UIWindow *window;
15+
UINavigationController *navigationController;
16+
17+
@private
18+
NSManagedObjectContext *managedObjectContext_;
19+
NSManagedObjectModel *managedObjectModel_;
20+
NSPersistentStoreCoordinator *persistentStoreCoordinator_;
21+
}
22+
23+
@property (nonatomic, retain) IBOutlet UIWindow *window;
24+
@property (nonatomic, retain) IBOutlet UINavigationController *navigationController;
25+
26+
@property (nonatomic, retain, readonly) NSManagedObjectContext *managedObjectContext;
27+
@property (nonatomic, retain, readonly) NSManagedObjectModel *managedObjectModel;
28+
@property (nonatomic, retain, readonly) NSPersistentStoreCoordinator *persistentStoreCoordinator;
29+
30+
- (NSString *)applicationDocumentsDirectory;
31+
32+
@end
33+

0 commit comments

Comments
 (0)