Skip to content

Commit 62a1af9

Browse files
committed
Added StaticLibrarySample
1 parent 70336e9 commit 62a1af9

16 files changed

Lines changed: 1654 additions & 0 deletions
Lines changed: 232 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,232 @@
1+
// !$*UTF8*$!
2+
{
3+
archiveVersion = 1;
4+
classes = {
5+
};
6+
objectVersion = 45;
7+
objects = {
8+
9+
/* Begin PBXBuildFile section */
10+
4C2E9492127F9F9B00313C4C /* XCSampleClass.h in Headers */ = {isa = PBXBuildFile; fileRef = 4C2E9490127F9F9B00313C4C /* XCSampleClass.h */; };
11+
4C2E9493127F9F9B00313C4C /* XCSampleClass.m in Sources */ = {isa = PBXBuildFile; fileRef = 4C2E9491127F9F9B00313C4C /* XCSampleClass.m */; };
12+
AA747D9F0F9514B9006C5449 /* StaticLibrarySample_Prefix.pch in Headers */ = {isa = PBXBuildFile; fileRef = AA747D9E0F9514B9006C5449 /* StaticLibrarySample_Prefix.pch */; };
13+
AACBBE4A0F95108600F1A2B1 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = AACBBE490F95108600F1A2B1 /* Foundation.framework */; };
14+
/* End PBXBuildFile section */
15+
16+
/* Begin PBXFileReference section */
17+
4C2E9490127F9F9B00313C4C /* XCSampleClass.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = XCSampleClass.h; sourceTree = "<group>"; };
18+
4C2E9491127F9F9B00313C4C /* XCSampleClass.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = XCSampleClass.m; sourceTree = "<group>"; };
19+
AA747D9E0F9514B9006C5449 /* StaticLibrarySample_Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = StaticLibrarySample_Prefix.pch; sourceTree = SOURCE_ROOT; };
20+
AACBBE490F95108600F1A2B1 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
21+
D2AAC07E0554694100DB518D /* libStaticLibrarySample.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libStaticLibrarySample.a; sourceTree = BUILT_PRODUCTS_DIR; };
22+
/* End PBXFileReference section */
23+
24+
/* Begin PBXFrameworksBuildPhase section */
25+
D2AAC07C0554694100DB518D /* Frameworks */ = {
26+
isa = PBXFrameworksBuildPhase;
27+
buildActionMask = 2147483647;
28+
files = (
29+
AACBBE4A0F95108600F1A2B1 /* Foundation.framework in Frameworks */,
30+
);
31+
runOnlyForDeploymentPostprocessing = 0;
32+
};
33+
/* End PBXFrameworksBuildPhase section */
34+
35+
/* Begin PBXGroup section */
36+
034768DFFF38A50411DB9C8B /* Products */ = {
37+
isa = PBXGroup;
38+
children = (
39+
D2AAC07E0554694100DB518D /* libStaticLibrarySample.a */,
40+
);
41+
name = Products;
42+
sourceTree = "<group>";
43+
};
44+
0867D691FE84028FC02AAC07 /* StaticLibrarySample */ = {
45+
isa = PBXGroup;
46+
children = (
47+
08FB77AEFE84172EC02AAC07 /* Classes */,
48+
32C88DFF0371C24200C91783 /* Other Sources */,
49+
0867D69AFE84028FC02AAC07 /* Frameworks */,
50+
034768DFFF38A50411DB9C8B /* Products */,
51+
);
52+
name = StaticLibrarySample;
53+
sourceTree = "<group>";
54+
};
55+
0867D69AFE84028FC02AAC07 /* Frameworks */ = {
56+
isa = PBXGroup;
57+
children = (
58+
AACBBE490F95108600F1A2B1 /* Foundation.framework */,
59+
);
60+
name = Frameworks;
61+
sourceTree = "<group>";
62+
};
63+
08FB77AEFE84172EC02AAC07 /* Classes */ = {
64+
isa = PBXGroup;
65+
children = (
66+
4C2E9490127F9F9B00313C4C /* XCSampleClass.h */,
67+
4C2E9491127F9F9B00313C4C /* XCSampleClass.m */,
68+
);
69+
name = Classes;
70+
sourceTree = "<group>";
71+
};
72+
32C88DFF0371C24200C91783 /* Other Sources */ = {
73+
isa = PBXGroup;
74+
children = (
75+
AA747D9E0F9514B9006C5449 /* StaticLibrarySample_Prefix.pch */,
76+
);
77+
name = "Other Sources";
78+
sourceTree = "<group>";
79+
};
80+
/* End PBXGroup section */
81+
82+
/* Begin PBXHeadersBuildPhase section */
83+
D2AAC07A0554694100DB518D /* Headers */ = {
84+
isa = PBXHeadersBuildPhase;
85+
buildActionMask = 2147483647;
86+
files = (
87+
AA747D9F0F9514B9006C5449 /* StaticLibrarySample_Prefix.pch in Headers */,
88+
4C2E9492127F9F9B00313C4C /* XCSampleClass.h in Headers */,
89+
);
90+
runOnlyForDeploymentPostprocessing = 0;
91+
};
92+
/* End PBXHeadersBuildPhase section */
93+
94+
/* Begin PBXNativeTarget section */
95+
D2AAC07D0554694100DB518D /* StaticLibrarySample */ = {
96+
isa = PBXNativeTarget;
97+
buildConfigurationList = 1DEB921E08733DC00010E9CD /* Build configuration list for PBXNativeTarget "StaticLibrarySample" */;
98+
buildPhases = (
99+
D2AAC07A0554694100DB518D /* Headers */,
100+
D2AAC07B0554694100DB518D /* Sources */,
101+
D2AAC07C0554694100DB518D /* Frameworks */,
102+
);
103+
buildRules = (
104+
);
105+
dependencies = (
106+
);
107+
name = StaticLibrarySample;
108+
productName = StaticLibrarySample;
109+
productReference = D2AAC07E0554694100DB518D /* libStaticLibrarySample.a */;
110+
productType = "com.apple.product-type.library.static";
111+
};
112+
/* End PBXNativeTarget section */
113+
114+
/* Begin PBXProject section */
115+
0867D690FE84028FC02AAC07 /* Project object */ = {
116+
isa = PBXProject;
117+
buildConfigurationList = 1DEB922208733DC00010E9CD /* Build configuration list for PBXProject "StaticLibrarySample" */;
118+
compatibilityVersion = "Xcode 3.1";
119+
developmentRegion = English;
120+
hasScannedForEncodings = 1;
121+
knownRegions = (
122+
English,
123+
Japanese,
124+
French,
125+
German,
126+
);
127+
mainGroup = 0867D691FE84028FC02AAC07 /* StaticLibrarySample */;
128+
productRefGroup = 034768DFFF38A50411DB9C8B /* Products */;
129+
projectDirPath = "";
130+
projectRoot = "";
131+
targets = (
132+
D2AAC07D0554694100DB518D /* StaticLibrarySample */,
133+
);
134+
};
135+
/* End PBXProject section */
136+
137+
/* Begin PBXSourcesBuildPhase section */
138+
D2AAC07B0554694100DB518D /* Sources */ = {
139+
isa = PBXSourcesBuildPhase;
140+
buildActionMask = 2147483647;
141+
files = (
142+
4C2E9493127F9F9B00313C4C /* XCSampleClass.m in Sources */,
143+
);
144+
runOnlyForDeploymentPostprocessing = 0;
145+
};
146+
/* End PBXSourcesBuildPhase section */
147+
148+
/* Begin XCBuildConfiguration section */
149+
1DEB921F08733DC00010E9CD /* Debug */ = {
150+
isa = XCBuildConfiguration;
151+
buildSettings = {
152+
ALWAYS_SEARCH_USER_PATHS = NO;
153+
ARCHS = "$(ARCHS_STANDARD_32_BIT)";
154+
COPY_PHASE_STRIP = NO;
155+
DSTROOT = /tmp/StaticLibrarySample.dst;
156+
GCC_DYNAMIC_NO_PIC = NO;
157+
GCC_ENABLE_FIX_AND_CONTINUE = YES;
158+
GCC_MODEL_TUNING = G5;
159+
GCC_OPTIMIZATION_LEVEL = 0;
160+
GCC_PRECOMPILE_PREFIX_HEADER = YES;
161+
GCC_PREFIX_HEADER = StaticLibrarySample_Prefix.pch;
162+
INSTALL_PATH = /usr/local/lib;
163+
PRODUCT_NAME = StaticLibrarySample;
164+
};
165+
name = Debug;
166+
};
167+
1DEB922008733DC00010E9CD /* Release */ = {
168+
isa = XCBuildConfiguration;
169+
buildSettings = {
170+
ALWAYS_SEARCH_USER_PATHS = NO;
171+
ARCHS = "$(ARCHS_STANDARD_32_BIT)";
172+
DSTROOT = /tmp/StaticLibrarySample.dst;
173+
GCC_MODEL_TUNING = G5;
174+
GCC_PRECOMPILE_PREFIX_HEADER = YES;
175+
GCC_PREFIX_HEADER = StaticLibrarySample_Prefix.pch;
176+
INSTALL_PATH = /usr/local/lib;
177+
PRODUCT_NAME = StaticLibrarySample;
178+
};
179+
name = Release;
180+
};
181+
1DEB922308733DC00010E9CD /* Debug */ = {
182+
isa = XCBuildConfiguration;
183+
buildSettings = {
184+
ARCHS = "$(ARCHS_STANDARD_32_BIT)";
185+
GCC_C_LANGUAGE_STANDARD = c99;
186+
GCC_OPTIMIZATION_LEVEL = 0;
187+
GCC_WARN_ABOUT_RETURN_TYPE = YES;
188+
GCC_WARN_UNUSED_VARIABLE = YES;
189+
OTHER_LDFLAGS = "-ObjC";
190+
PREBINDING = NO;
191+
SDKROOT = iphoneos4.1;
192+
};
193+
name = Debug;
194+
};
195+
1DEB922408733DC00010E9CD /* Release */ = {
196+
isa = XCBuildConfiguration;
197+
buildSettings = {
198+
ARCHS = "$(ARCHS_STANDARD_32_BIT)";
199+
GCC_C_LANGUAGE_STANDARD = c99;
200+
GCC_WARN_ABOUT_RETURN_TYPE = YES;
201+
GCC_WARN_UNUSED_VARIABLE = YES;
202+
OTHER_LDFLAGS = "-ObjC";
203+
PREBINDING = NO;
204+
SDKROOT = iphoneos4.1;
205+
};
206+
name = Release;
207+
};
208+
/* End XCBuildConfiguration section */
209+
210+
/* Begin XCConfigurationList section */
211+
1DEB921E08733DC00010E9CD /* Build configuration list for PBXNativeTarget "StaticLibrarySample" */ = {
212+
isa = XCConfigurationList;
213+
buildConfigurations = (
214+
1DEB921F08733DC00010E9CD /* Debug */,
215+
1DEB922008733DC00010E9CD /* Release */,
216+
);
217+
defaultConfigurationIsVisible = 0;
218+
defaultConfigurationName = Release;
219+
};
220+
1DEB922208733DC00010E9CD /* Build configuration list for PBXProject "StaticLibrarySample" */ = {
221+
isa = XCConfigurationList;
222+
buildConfigurations = (
223+
1DEB922308733DC00010E9CD /* Debug */,
224+
1DEB922408733DC00010E9CD /* Release */,
225+
);
226+
defaultConfigurationIsVisible = 0;
227+
defaultConfigurationName = Release;
228+
};
229+
/* End XCConfigurationList section */
230+
};
231+
rootObject = 0867D690FE84028FC02AAC07 /* Project object */;
232+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
//
2+
// Prefix header for all source files of the 'CocoaTouchStaticLibrary' target in the 'CocoaTouchStaticLibrary' project.
3+
//
4+
5+
#ifdef __OBJC__
6+
#import <Foundation/Foundation.h>
7+
#endif
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
//
2+
// XCSampleClass.h
3+
// StaticLibrarySample
4+
//
5+
// Created by Hiroshi Hashiguchi on 10/11/02.
6+
// Copyright 2010 . All rights reserved.
7+
//
8+
9+
#import <Foundation/Foundation.h>
10+
11+
12+
@interface XCSampleClass : NSObject {
13+
14+
}
15+
16+
- (NSString*)helloString;
17+
18+
@end
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
//
2+
// XCSampleClass.m
3+
// StaticLibrarySample
4+
//
5+
// Created by Hiroshi Hashiguchi on 10/11/02.
6+
// Copyright 2010 . All rights reserved.
7+
//
8+
9+
#import "XCSampleClass.h"
10+
11+
12+
@implementation XCSampleClass
13+
14+
- (NSString*)helloString
15+
{
16+
return @"Hellow World";
17+
}
18+
19+
@end
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
//
2+
// UsingStaticLibrarySampleAppDelegate.h
3+
// UsingStaticLibrarySample
4+
//
5+
// Created by Hiroshi Hashiguchi on 10/11/02.
6+
// Copyright 2010 . All rights reserved.
7+
//
8+
9+
#import <UIKit/UIKit.h>
10+
11+
@class UsingStaticLibrarySampleViewController;
12+
13+
@interface UsingStaticLibrarySampleAppDelegate : NSObject <UIApplicationDelegate> {
14+
UIWindow *window;
15+
UsingStaticLibrarySampleViewController *viewController;
16+
}
17+
18+
@property (nonatomic, retain) IBOutlet UIWindow *window;
19+
@property (nonatomic, retain) IBOutlet UsingStaticLibrarySampleViewController *viewController;
20+
21+
@end
22+
Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
//
2+
// UsingStaticLibrarySampleAppDelegate.m
3+
// UsingStaticLibrarySample
4+
//
5+
// Created by Hiroshi Hashiguchi on 10/11/02.
6+
// Copyright 2010 . All rights reserved.
7+
//
8+
9+
#import "UsingStaticLibrarySampleAppDelegate.h"
10+
#import "UsingStaticLibrarySampleViewController.h"
11+
12+
@implementation UsingStaticLibrarySampleAppDelegate
13+
14+
@synthesize window;
15+
@synthesize viewController;
16+
17+
18+
#pragma mark -
19+
#pragma mark Application lifecycle
20+
21+
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
22+
23+
// Override point for customization after application launch.
24+
25+
// Add the view controller's view to the window and display.
26+
[window addSubview:viewController.view];
27+
[window makeKeyAndVisible];
28+
29+
return YES;
30+
}
31+
32+
33+
- (void)applicationWillResignActive:(UIApplication *)application {
34+
/*
35+
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.
36+
Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
37+
*/
38+
}
39+
40+
41+
- (void)applicationDidEnterBackground:(UIApplication *)application {
42+
/*
43+
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.
44+
If your application supports background execution, called instead of applicationWillTerminate: when the user quits.
45+
*/
46+
}
47+
48+
49+
- (void)applicationWillEnterForeground:(UIApplication *)application {
50+
/*
51+
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.
52+
*/
53+
}
54+
55+
56+
- (void)applicationDidBecomeActive:(UIApplication *)application {
57+
/*
58+
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.
59+
*/
60+
}
61+
62+
63+
- (void)applicationWillTerminate:(UIApplication *)application {
64+
/*
65+
Called when the application is about to terminate.
66+
See also applicationDidEnterBackground:.
67+
*/
68+
}
69+
70+
71+
#pragma mark -
72+
#pragma mark Memory management
73+
74+
- (void)applicationDidReceiveMemoryWarning:(UIApplication *)application {
75+
/*
76+
Free up as much memory as possible by purging cached data objects that can be recreated (or reloaded from disk) later.
77+
*/
78+
}
79+
80+
81+
- (void)dealloc {
82+
[viewController release];
83+
[window release];
84+
[super dealloc];
85+
}
86+
87+
88+
@end

0 commit comments

Comments
 (0)