Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Split into two targets, CWFoundation, and CWNetworkMonitor. Only the …

…latter requires linking against SystemConfiguration.framework
  • Loading branch information...
commit 56c9ef6c8a88be5c2663eac4a9b02ddd7edb5057 1 parent eeb186d
@PeyloW PeyloW authored
View
1  .gitignore
@@ -9,3 +9,4 @@ Dependencies/*
test-reports/*
*.ipa
xcuserdata
+*.xcworkspace
View
154 CWFoundation.xcodeproj/project.pbxproj
@@ -7,16 +7,9 @@
objects = {
/* Begin PBXBuildFile section */
- A6A971721369B20D0065D9BE /* CWNetworkMonitor.h in Headers */ = {isa = PBXBuildFile; fileRef = A6A971701369B20D0065D9BE /* CWNetworkMonitor.h */; };
- A6A971731369B20D0065D9BE /* CWNetworkMonitor.m in Sources */ = {isa = PBXBuildFile; fileRef = A6A971711369B20D0065D9BE /* CWNetworkMonitor.m */; };
- A6A971761369B2550065D9BE /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A6A971751369B2550065D9BE /* SystemConfiguration.framework */; settings = {ATTRIBUTES = (Required, ); }; };
A6A9717B1369B26C0065D9BE /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A6A971751369B2550065D9BE /* SystemConfiguration.framework */; };
- A6A971A01369B2F40065D9BE /* libCWFoundation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = D2AAC07E0554694100DB518D /* libCWFoundation.a */; };
A6A971A11369B2F40065D9BE /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = AACBBE490F95108600F1A2B1 /* Foundation.framework */; };
A6A971A41369B2F40065D9BE /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A6A971A31369B2F40065D9BE /* UIKit.framework */; };
- A6A971AB1369B30C0065D9BE /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = A6A971A61369B30C0065D9BE /* main.m */; };
- A6A971AC1369B30C0065D9BE /* MainWindow.xib in Resources */ = {isa = PBXBuildFile; fileRef = A6A971A71369B30C0065D9BE /* MainWindow.xib */; };
- A6A971AE1369B30C0065D9BE /* SampleAppAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = A6A971AA1369B30C0065D9BE /* SampleAppAppDelegate.m */; };
A6A971D31369B3ED0065D9BE /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = A6A971CB1369B3ED0065D9BE /* main.m */; };
A6A971D41369B3ED0065D9BE /* MainWindow.xib in Resources */ = {isa = PBXBuildFile; fileRef = A6A971CC1369B3ED0065D9BE /* MainWindow.xib */; };
A6A971D51369B3ED0065D9BE /* RSSFeed.xmltranslation in Resources */ = {isa = PBXBuildFile; fileRef = A6A971CD1369B3ED0065D9BE /* RSSFeed.xmltranslation */; };
@@ -27,6 +20,15 @@
A6A971DD1369B4790065D9BE /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A6A971751369B2550065D9BE /* SystemConfiguration.framework */; };
A6A971DE1369B4790065D9BE /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A6A971A31369B2F40065D9BE /* UIKit.framework */; };
A6A9758C136AC10A0065D9BE /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A6A971751369B2550065D9BE /* SystemConfiguration.framework */; };
+ A6B254DD136BF9E700D5F57F /* CWNetworkMonitor.h in Headers */ = {isa = PBXBuildFile; fileRef = A6A971701369B20D0065D9BE /* CWNetworkMonitor.h */; };
+ A6B254E7136BF9E700D5F57F /* CWNetworkMonitor.m in Sources */ = {isa = PBXBuildFile; fileRef = A6A971711369B20D0065D9BE /* CWNetworkMonitor.m */; };
+ A6B254E9136BF9E700D5F57F /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = AACBBE490F95108600F1A2B1 /* Foundation.framework */; };
+ A6B254EA136BF9E700D5F57F /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A6A971751369B2550065D9BE /* SystemConfiguration.framework */; settings = {ATTRIBUTES = (Required, ); }; };
+ A6B254F1136BFA9F00D5F57F /* libCWNetworkMonitor.a in Frameworks */ = {isa = PBXBuildFile; fileRef = A6B254EE136BF9E700D5F57F /* libCWNetworkMonitor.a */; };
+ A6B254F7136BFD5100D5F57F /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = A6B254F2136BFD5100D5F57F /* main.m */; };
+ A6B254F8136BFD5100D5F57F /* MainWindow.xib in Resources */ = {isa = PBXBuildFile; fileRef = A6B254F3136BFD5100D5F57F /* MainWindow.xib */; };
+ A6B254F9136BFD5100D5F57F /* NetworkMonitorSampleApp-Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = A6B254F4136BFD5100D5F57F /* NetworkMonitorSampleApp-Info.plist */; };
+ A6B254FA136BFD5100D5F57F /* SampleAppAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = A6B254F6136BFD5100D5F57F /* SampleAppAppDelegate.m */; };
A6ED913C13694ABB002DCEE4 /* CWLocalization.h in Headers */ = {isa = PBXBuildFile; fileRef = A6ED913213694ABB002DCEE4 /* CWLocalization.h */; };
A6ED913D13694ABB002DCEE4 /* CWLog.h in Headers */ = {isa = PBXBuildFile; fileRef = A6ED913313694ABB002DCEE4 /* CWLog.h */; };
A6ED913E13694ABB002DCEE4 /* NSError+CWAdditions.h in Headers */ = {isa = PBXBuildFile; fileRef = A6ED913413694ABB002DCEE4 /* NSError+CWAdditions.h */; };
@@ -54,19 +56,19 @@
/* End PBXBuildFile section */
/* Begin PBXContainerItemProxy section */
- A6A9719E1369B2DD0065D9BE /* PBXContainerItemProxy */ = {
+ A6A971D91369B4010065D9BE /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 0867D690FE84028FC02AAC07 /* Project object */;
proxyType = 1;
remoteGlobalIDString = D2AAC07D0554694100DB518D;
remoteInfo = CWFoundation;
};
- A6A971D91369B4010065D9BE /* PBXContainerItemProxy */ = {
+ A6B254EF136BFA5D00D5F57F /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 0867D690FE84028FC02AAC07 /* Project object */;
proxyType = 1;
- remoteGlobalIDString = D2AAC07D0554694100DB518D;
- remoteInfo = CWFoundation;
+ remoteGlobalIDString = A6B254D0136BF9E700D5F57F;
+ remoteInfo = CWNetworkMonitor;
};
A6ED915413694AE0002DCEE4 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
@@ -83,11 +85,6 @@
A6A971751369B2550065D9BE /* SystemConfiguration.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SystemConfiguration.framework; path = System/Library/Frameworks/SystemConfiguration.framework; sourceTree = SDKROOT; };
A6A971981369B2D80065D9BE /* NetworkMonitorSampleApp.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = NetworkMonitorSampleApp.app; sourceTree = BUILT_PRODUCTS_DIR; };
A6A971A31369B2F40065D9BE /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
- A6A971A61369B30C0065D9BE /* main.m */ = {isa = PBXFileReference; fileEncoding = 5; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
- A6A971A71369B30C0065D9BE /* MainWindow.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = MainWindow.xib; sourceTree = "<group>"; };
- A6A971A81369B30C0065D9BE /* NetworkMonitorSampleApp-Info.plist */ = {isa = PBXFileReference; fileEncoding = 5; lastKnownFileType = text.plist.xml; path = "NetworkMonitorSampleApp-Info.plist"; sourceTree = "<group>"; };
- A6A971A91369B30C0065D9BE /* SampleAppAppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 5; lastKnownFileType = sourcecode.c.h; path = SampleAppAppDelegate.h; sourceTree = "<group>"; };
- A6A971AA1369B30C0065D9BE /* SampleAppAppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 5; lastKnownFileType = sourcecode.c.objc; path = SampleAppAppDelegate.m; sourceTree = "<group>"; };
A6A971C41369B3C90065D9BE /* XMLTranslatorSampleApp.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = XMLTranslatorSampleApp.app; sourceTree = BUILT_PRODUCTS_DIR; };
A6A971CB1369B3ED0065D9BE /* main.m */ = {isa = PBXFileReference; fileEncoding = 5; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
A6A971CC1369B3ED0065D9BE /* MainWindow.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = MainWindow.xib; sourceTree = "<group>"; };
@@ -98,6 +95,12 @@
A6A971D11369B3ED0065D9BE /* SampleAppAppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 5; lastKnownFileType = sourcecode.c.objc; path = SampleAppAppDelegate.m; sourceTree = "<group>"; };
A6A971D21369B3ED0065D9BE /* XMLTranslatorSampleApp-Info.plist */ = {isa = PBXFileReference; fileEncoding = 5; lastKnownFileType = text.plist.xml; path = "XMLTranslatorSampleApp-Info.plist"; sourceTree = "<group>"; };
A6A9754B136ABD770065D9BE /* CWFoundation.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = CWFoundation.h; path = Classes/CWFoundation.h; sourceTree = "<group>"; };
+ A6B254EE136BF9E700D5F57F /* libCWNetworkMonitor.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libCWNetworkMonitor.a; sourceTree = BUILT_PRODUCTS_DIR; };
+ A6B254F2136BFD5100D5F57F /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = "Sample Classes/NetworkMonitor/main.m"; sourceTree = SOURCE_ROOT; };
+ A6B254F3136BFD5100D5F57F /* MainWindow.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; name = MainWindow.xib; path = "Sample Classes/NetworkMonitor/MainWindow.xib"; sourceTree = SOURCE_ROOT; };
+ A6B254F4136BFD5100D5F57F /* NetworkMonitorSampleApp-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = "NetworkMonitorSampleApp-Info.plist"; path = "Sample Classes/NetworkMonitor/NetworkMonitorSampleApp-Info.plist"; sourceTree = SOURCE_ROOT; };
+ A6B254F5136BFD5100D5F57F /* SampleAppAppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SampleAppAppDelegate.h; path = "Sample Classes/NetworkMonitor/SampleAppAppDelegate.h"; sourceTree = SOURCE_ROOT; };
+ A6B254F6136BFD5100D5F57F /* SampleAppAppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SampleAppAppDelegate.m; path = "Sample Classes/NetworkMonitor/SampleAppAppDelegate.m"; sourceTree = SOURCE_ROOT; };
A6ED906F1369473E002DCEE4 /* README */ = {isa = PBXFileReference; fileEncoding = 5; lastKnownFileType = text; path = README; sourceTree = "<group>"; };
A6ED913213694ABB002DCEE4 /* CWLocalization.h */ = {isa = PBXFileReference; fileEncoding = 5; lastKnownFileType = sourcecode.c.h; name = CWLocalization.h; path = Classes/CWLocalization.h; sourceTree = "<group>"; };
A6ED913313694ABB002DCEE4 /* CWLog.h */ = {isa = PBXFileReference; fileEncoding = 5; lastKnownFileType = sourcecode.c.h; name = CWLog.h; path = Classes/CWLog.h; sourceTree = "<group>"; };
@@ -132,7 +135,7 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
- A6A971A01369B2F40065D9BE /* libCWFoundation.a in Frameworks */,
+ A6B254F1136BFA9F00D5F57F /* libCWNetworkMonitor.a in Frameworks */,
A6A971A11369B2F40065D9BE /* Foundation.framework in Frameworks */,
A6A971A41369B2F40065D9BE /* UIKit.framework in Frameworks */,
A6A9758C136AC10A0065D9BE /* SystemConfiguration.framework in Frameworks */,
@@ -150,6 +153,15 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
+ A6B254E8136BF9E700D5F57F /* Frameworks */ = {
+ isa = PBXFrameworksBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ A6B254E9136BF9E700D5F57F /* Foundation.framework in Frameworks */,
+ A6B254EA136BF9E700D5F57F /* SystemConfiguration.framework in Frameworks */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
A6ED914C13694AD8002DCEE4 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
@@ -165,7 +177,6 @@
buildActionMask = 2147483647;
files = (
AACBBE4A0F95108600F1A2B1 /* Foundation.framework in Frameworks */,
- A6A971761369B2550065D9BE /* SystemConfiguration.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -179,6 +190,7 @@
A6ED914F13694AD8002DCEE4 /* UnitTests.octest */,
A6A971981369B2D80065D9BE /* NetworkMonitorSampleApp.app */,
A6A971C41369B3C90065D9BE /* XMLTranslatorSampleApp.app */,
+ A6B254EE136BF9E700D5F57F /* libCWNetworkMonitor.a */,
);
name = Products;
sourceTree = "<group>";
@@ -258,11 +270,11 @@
A6A971A51369B30C0065D9BE /* NetworkMonitor */ = {
isa = PBXGroup;
children = (
- A6A971A61369B30C0065D9BE /* main.m */,
- A6A971A91369B30C0065D9BE /* SampleAppAppDelegate.h */,
- A6A971AA1369B30C0065D9BE /* SampleAppAppDelegate.m */,
- A6A971A71369B30C0065D9BE /* MainWindow.xib */,
- A6A971A81369B30C0065D9BE /* NetworkMonitorSampleApp-Info.plist */,
+ A6B254F2136BFD5100D5F57F /* main.m */,
+ A6B254F3136BFD5100D5F57F /* MainWindow.xib */,
+ A6B254F4136BFD5100D5F57F /* NetworkMonitorSampleApp-Info.plist */,
+ A6B254F5136BFD5100D5F57F /* SampleAppAppDelegate.h */,
+ A6B254F6136BFD5100D5F57F /* SampleAppAppDelegate.m */,
);
path = NetworkMonitor;
sourceTree = "<group>";
@@ -286,6 +298,14 @@
/* End PBXGroup section */
/* Begin PBXHeadersBuildPhase section */
+ A6B254D1136BF9E700D5F57F /* Headers */ = {
+ isa = PBXHeadersBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ A6B254DD136BF9E700D5F57F /* CWNetworkMonitor.h in Headers */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
D2AAC07A0554694100DB518D /* Headers */ = {
isa = PBXHeadersBuildPhase;
buildActionMask = 2147483647;
@@ -301,7 +321,6 @@
A6ED943C13697EAE002DCEE4 /* CWFileURLFromDataTransformer.h in Headers */,
A6ED94EC13698284002DCEE4 /* CWXMLTranslation.h in Headers */,
A6ED94EE13698284002DCEE4 /* CWXMLTranslator.h in Headers */,
- A6A971721369B20D0065D9BE /* CWNetworkMonitor.h in Headers */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -319,7 +338,7 @@
buildRules = (
);
dependencies = (
- A6A9719F1369B2DD0065D9BE /* PBXTargetDependency */,
+ A6B254F0136BFA5D00D5F57F /* PBXTargetDependency */,
);
name = NetworkMonitorSampleApp;
productName = NetworkMonitorSampleApp;
@@ -344,6 +363,23 @@
productReference = A6A971C41369B3C90065D9BE /* XMLTranslatorSampleApp.app */;
productType = "com.apple.product-type.application";
};
+ A6B254D0136BF9E700D5F57F /* CWNetworkMonitor */ = {
+ isa = PBXNativeTarget;
+ buildConfigurationList = A6B254EB136BF9E700D5F57F /* Build configuration list for PBXNativeTarget "CWNetworkMonitor" */;
+ buildPhases = (
+ A6B254D1136BF9E700D5F57F /* Headers */,
+ A6B254DE136BF9E700D5F57F /* Sources */,
+ A6B254E8136BF9E700D5F57F /* Frameworks */,
+ );
+ buildRules = (
+ );
+ dependencies = (
+ );
+ name = CWNetworkMonitor;
+ productName = CWFoundation;
+ productReference = A6B254EE136BF9E700D5F57F /* libCWNetworkMonitor.a */;
+ productType = "com.apple.product-type.library.static";
+ };
A6ED914E13694AD8002DCEE4 /* UnitTests */ = {
isa = PBXNativeTarget;
buildConfigurationList = A6ED915313694AD8002DCEE4 /* Build configuration list for PBXNativeTarget "UnitTests" */;
@@ -401,6 +437,7 @@
projectRoot = "";
targets = (
D2AAC07D0554694100DB518D /* CWFoundation */,
+ A6B254D0136BF9E700D5F57F /* CWNetworkMonitor */,
A6ED914E13694AD8002DCEE4 /* UnitTests */,
A6A971971369B2D80065D9BE /* NetworkMonitorSampleApp */,
A6A971C31369B3C90065D9BE /* XMLTranslatorSampleApp */,
@@ -413,7 +450,8 @@
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
- A6A971AC1369B30C0065D9BE /* MainWindow.xib in Resources */,
+ A6B254F8136BFD5100D5F57F /* MainWindow.xib in Resources */,
+ A6B254F9136BFD5100D5F57F /* NetworkMonitorSampleApp-Info.plist in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -456,8 +494,8 @@
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
- A6A971AB1369B30C0065D9BE /* main.m in Sources */,
- A6A971AE1369B30C0065D9BE /* SampleAppAppDelegate.m in Sources */,
+ A6B254F7136BFD5100D5F57F /* main.m in Sources */,
+ A6B254FA136BFD5100D5F57F /* SampleAppAppDelegate.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -471,6 +509,14 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
+ A6B254DE136BF9E700D5F57F /* Sources */ = {
+ isa = PBXSourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ A6B254E7136BF9E700D5F57F /* CWNetworkMonitor.m in Sources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
A6ED914B13694AD8002DCEE4 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
@@ -492,23 +538,22 @@
A6ED943D13697EAE002DCEE4 /* CWFileURLFromDataTransformer.m in Sources */,
A6ED94ED13698284002DCEE4 /* CWXMLTranslation.m in Sources */,
A6ED94EF13698284002DCEE4 /* CWXMLTranslator.m in Sources */,
- A6A971731369B20D0065D9BE /* CWNetworkMonitor.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */
/* Begin PBXTargetDependency section */
- A6A9719F1369B2DD0065D9BE /* PBXTargetDependency */ = {
- isa = PBXTargetDependency;
- target = D2AAC07D0554694100DB518D /* CWFoundation */;
- targetProxy = A6A9719E1369B2DD0065D9BE /* PBXContainerItemProxy */;
- };
A6A971DA1369B4010065D9BE /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
target = D2AAC07D0554694100DB518D /* CWFoundation */;
targetProxy = A6A971D91369B4010065D9BE /* PBXContainerItemProxy */;
};
+ A6B254F0136BFA5D00D5F57F /* PBXTargetDependency */ = {
+ isa = PBXTargetDependency;
+ target = A6B254D0136BF9E700D5F57F /* CWNetworkMonitor */;
+ targetProxy = A6B254EF136BFA5D00D5F57F /* PBXContainerItemProxy */;
+ };
A6ED915513694AE0002DCEE4 /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
target = D2AAC07D0554694100DB518D /* CWFoundation */;
@@ -676,6 +721,38 @@
};
name = Release;
};
+ A6B254EC136BF9E700D5F57F /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ ARCHS = "$(ARCHS_STANDARD_32_BIT)";
+ COPY_PHASE_STRIP = NO;
+ DSTROOT = /tmp/CWFoundation.dst;
+ GCC_DYNAMIC_NO_PIC = NO;
+ GCC_ENABLE_FIX_AND_CONTINUE = YES;
+ GCC_MODEL_TUNING = G5;
+ GCC_OPTIMIZATION_LEVEL = 0;
+ GCC_PRECOMPILE_PREFIX_HEADER = YES;
+ INSTALL_PATH = /usr/local/lib;
+ PRODUCT_NAME = CWNetworkMonitor;
+ VERSION_INFO_BUILDER = CWNetworkMonitor;
+ };
+ name = Debug;
+ };
+ A6B254ED136BF9E700D5F57F /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ ARCHS = "$(ARCHS_STANDARD_32_BIT)";
+ DSTROOT = /tmp/CWFoundation.dst;
+ GCC_MODEL_TUNING = G5;
+ GCC_PRECOMPILE_PREFIX_HEADER = YES;
+ INSTALL_PATH = /usr/local/lib;
+ PRODUCT_NAME = CWNetworkMonitor;
+ VERSION_INFO_BUILDER = CWNetworkMonitor;
+ };
+ name = Release;
+ };
A6ED915113694AD8002DCEE4 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
@@ -777,6 +854,15 @@
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
+ A6B254EB136BF9E700D5F57F /* Build configuration list for PBXNativeTarget "CWNetworkMonitor" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ A6B254EC136BF9E700D5F57F /* Debug */,
+ A6B254ED136BF9E700D5F57F /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
A6ED915313694AD8002DCEE4 /* Build configuration list for PBXNativeTarget "UnitTests" */ = {
isa = XCConfigurationList;
buildConfigurations = (
View
22 NetworkMonitor/main.m → Classes/CWFoundation.h
@@ -1,5 +1,5 @@
//
-// main.m
+// CWFoundation.h
// CWFoundation
// Created by Fredrik Olsson
//
@@ -28,12 +28,14 @@
// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
//
-#import <UIKit/UIKit.h>
-
-int main(int argc, char *argv[]) {
-
- NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
- int retVal = UIApplicationMain(argc, argv, nil, nil);
- [pool release];
- return retVal;
-}
+#import "CWFileURLFromDataTransformer.h"
+#import "CWLocalization.h"
+#import "CWLog.h"
+#import "CWNetworkMonitor.h"
+#import "CWXMLTranslation.h"
+#import "CWXMLTranslator.h"
+#import "NSError+CWAdditions.h"
+#import "NSInvocation+CWVariableArguments.h"
+#import "NSOperationQueue+CWDefaultQueue.h"
+#import "NSOperationQueue+CWReplaceOperation.h"
+#import "NSURLLoadingSystem+CWAdditions.h"
View
46 Classes/CWNetworkMonitor.h
@@ -1,3 +1,49 @@
+/*
+
+ File: Reachability.m
+ Abstract: Basic demonstration of how to use the SystemConfiguration Reachablity APIs.
+
+ Version: 2.1
+
+ Disclaimer: IMPORTANT: This Apple software is supplied to you by Apple Inc.
+ ("Apple") in consideration of your agreement to the following terms, and your
+ use, installation, modification or redistribution of this Apple software
+ constitutes acceptance of these terms. If you do not agree with these terms,
+ please do not use, install, modify or redistribute this Apple software.
+
+ In consideration of your agreement to abide by the following terms, and subject
+ to these terms, Apple grants you a personal, non-exclusive license, under
+ Apple's copyrights in this original Apple software (the "Apple Software"), to
+ use, reproduce, modify and redistribute the Apple Software, with or without
+ modifications, in source and/or binary forms; provided that if you redistribute
+ the Apple Software in its entirety and without modifications, you must retain
+ this notice and the following text and disclaimers in all such redistributions
+ of the Apple Software.
+ Neither the name, trademarks, service marks or logos of Apple Inc. may be used
+ to endorse or promote products derived from the Apple Software without specific
+ prior written permission from Apple. Except as expressly stated in this notice,
+ no other rights or licenses, express or implied, are granted by Apple herein,
+ including but not limited to any patent rights that may be infringed by your
+ derivative works or by other works in which the Apple Software may be
+ incorporated.
+
+ The Apple Software is provided by Apple on an "AS IS" basis. APPLE MAKES NO
+ WARRANTIES, EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION THE IMPLIED
+ WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ PURPOSE, REGARDING THE APPLE SOFTWARE OR ITS USE AND OPERATION ALONE OR IN
+ COMBINATION WITH YOUR PRODUCTS.
+
+ IN NO EVENT SHALL APPLE BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL OR
+ CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ ARISING IN ANY WAY OUT OF THE USE, REPRODUCTION, MODIFICATION AND/OR
+ DISTRIBUTION OF THE APPLE SOFTWARE, HOWEVER CAUSED AND WHETHER UNDER THEORY OF
+ CONTRACT, TORT (INCLUDING NEGLIGENCE), STRICT LIABILITY OR OTHERWISE, EVEN IF
+ APPLE HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+ Copyright (C) 2010 Apple Inc. All Rights Reserved.
+
+*/
//
// CWNetworkMonitor.h
// CWFoundation
View
46 Classes/CWNetworkMonitor.m
@@ -1,3 +1,49 @@
+/*
+
+ File: Reachability.m
+ Abstract: Basic demonstration of how to use the SystemConfiguration Reachablity APIs.
+
+ Version: 2.1
+
+ Disclaimer: IMPORTANT: This Apple software is supplied to you by Apple Inc.
+ ("Apple") in consideration of your agreement to the following terms, and your
+ use, installation, modification or redistribution of this Apple software
+ constitutes acceptance of these terms. If you do not agree with these terms,
+ please do not use, install, modify or redistribute this Apple software.
+
+ In consideration of your agreement to abide by the following terms, and subject
+ to these terms, Apple grants you a personal, non-exclusive license, under
+ Apple's copyrights in this original Apple software (the "Apple Software"), to
+ use, reproduce, modify and redistribute the Apple Software, with or without
+ modifications, in source and/or binary forms; provided that if you redistribute
+ the Apple Software in its entirety and without modifications, you must retain
+ this notice and the following text and disclaimers in all such redistributions
+ of the Apple Software.
+ Neither the name, trademarks, service marks or logos of Apple Inc. may be used
+ to endorse or promote products derived from the Apple Software without specific
+ prior written permission from Apple. Except as expressly stated in this notice,
+ no other rights or licenses, express or implied, are granted by Apple herein,
+ including but not limited to any patent rights that may be infringed by your
+ derivative works or by other works in which the Apple Software may be
+ incorporated.
+
+ The Apple Software is provided by Apple on an "AS IS" basis. APPLE MAKES NO
+ WARRANTIES, EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION THE IMPLIED
+ WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ PURPOSE, REGARDING THE APPLE SOFTWARE OR ITS USE AND OPERATION ALONE OR IN
+ COMBINATION WITH YOUR PRODUCTS.
+
+ IN NO EVENT SHALL APPLE BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL OR
+ CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ ARISING IN ANY WAY OUT OF THE USE, REPRODUCTION, MODIFICATION AND/OR
+ DISTRIBUTION OF THE APPLE SOFTWARE, HOWEVER CAUSED AND WHETHER UNDER THEORY OF
+ CONTRACT, TORT (INCLUDING NEGLIGENCE), STRICT LIABILITY OR OTHERWISE, EVEN IF
+ APPLE HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+ Copyright (C) 2010 Apple Inc. All Rights Reserved.
+
+*/
//
// CWNetworkMonitor.m
// CWFoundation
View
472 NetworkMonitor/MainWindow.xib
@@ -1,472 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<archive type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="7.10">
- <data>
- <int key="IBDocument.SystemTarget">1056</int>
- <string key="IBDocument.SystemVersion">10J567</string>
- <string key="IBDocument.InterfaceBuilderVersion">823</string>
- <string key="IBDocument.AppKitVersion">1038.35</string>
- <string key="IBDocument.HIToolboxVersion">462.00</string>
- <object class="NSMutableDictionary" key="IBDocument.PluginVersions">
- <string key="NS.key.0">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
- <string key="NS.object.0">132</string>
- </object>
- <object class="NSMutableArray" key="IBDocument.EditedObjectIDs">
- <bool key="EncodedWithXMLCoder">YES</bool>
- <integer value="2"/>
- </object>
- <object class="NSArray" key="IBDocument.PluginDependencies">
- <bool key="EncodedWithXMLCoder">YES</bool>
- <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
- </object>
- <object class="NSMutableDictionary" key="IBDocument.Metadata">
- <bool key="EncodedWithXMLCoder">YES</bool>
- <object class="NSArray" key="dict.sortedKeys" id="0">
- <bool key="EncodedWithXMLCoder">YES</bool>
- </object>
- <object class="NSMutableArray" key="dict.values">
- <bool key="EncodedWithXMLCoder">YES</bool>
- </object>
- </object>
- <object class="NSMutableArray" key="IBDocument.RootObjects" id="1000">
- <bool key="EncodedWithXMLCoder">YES</bool>
- <object class="IBProxyObject" id="841351856">
- <string key="IBProxiedObjectIdentifier">IBFilesOwner</string>
- <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
- </object>
- <object class="IBProxyObject" id="427554174">
- <string key="IBProxiedObjectIdentifier">IBFirstResponder</string>
- <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
- </object>
- <object class="IBUICustomObject" id="664661524">
- <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
- </object>
- <object class="IBUIWindow" id="380026005">
- <reference key="NSNextResponder"/>
- <int key="NSvFlags">1316</int>
- <object class="NSMutableArray" key="NSSubviews">
- <bool key="EncodedWithXMLCoder">YES</bool>
- <object class="IBUILabel" id="794372045">
- <reference key="NSNextResponder" ref="380026005"/>
- <int key="NSvFlags">1316</int>
- <string key="NSFrame">{{20, 40}, {280, 21}}</string>
- <reference key="NSSuperview" ref="380026005"/>
- <bool key="IBUIOpaque">NO</bool>
- <bool key="IBUIClipsSubviews">YES</bool>
- <int key="IBUIContentMode">7</int>
- <bool key="IBUIUserInteractionEnabled">NO</bool>
- <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
- <string key="IBUIText">Label</string>
- <object class="NSColor" key="IBUITextColor">
- <int key="NSColorSpace">1</int>
- <bytes key="NSRGB">MCAwIDAAA</bytes>
- </object>
- <object class="NSColor" key="IBUIHighlightedColor">
- <int key="NSColorSpace">3</int>
- <bytes key="NSWhite">MQA</bytes>
- </object>
- <int key="IBUIBaselineAdjustment">1</int>
- <float key="IBUIMinimumFontSize">10</float>
- </object>
- </object>
- <object class="NSPSMatrix" key="NSFrameMatrix"/>
- <string key="NSFrameSize">{320, 480}</string>
- <reference key="NSSuperview"/>
- <object class="NSColor" key="IBUIBackgroundColor">
- <int key="NSColorSpace">1</int>
- <bytes key="NSRGB">MSAxIDEAA</bytes>
- </object>
- <bool key="IBUIOpaque">NO</bool>
- <bool key="IBUIClearsContextBeforeDrawing">NO</bool>
- <object class="IBUISimulatedStatusBarMetrics" key="IBUISimulatedStatusBarMetrics"/>
- <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
- <bool key="IBUIResizesToFullScreen">YES</bool>
- </object>
- </object>
- <object class="IBObjectContainer" key="IBDocument.Objects">
- <object class="NSMutableArray" key="connectionRecords">
- <bool key="EncodedWithXMLCoder">YES</bool>
- <object class="IBConnectionRecord">
- <object class="IBCocoaTouchOutletConnection" key="connection">
- <string key="label">delegate</string>
- <reference key="source" ref="841351856"/>
- <reference key="destination" ref="664661524"/>
- </object>
- <int key="connectionID">4</int>
- </object>
- <object class="IBConnectionRecord">
- <object class="IBCocoaTouchOutletConnection" key="connection">
- <string key="label">window</string>
- <reference key="source" ref="664661524"/>
- <reference key="destination" ref="380026005"/>
- </object>
- <int key="connectionID">5</int>
- </object>
- <object class="IBConnectionRecord">
- <object class="IBCocoaTouchOutletConnection" key="connection">
- <string key="label">label</string>
- <reference key="source" ref="664661524"/>
- <reference key="destination" ref="794372045"/>
- </object>
- <int key="connectionID">11</int>
- </object>
- </object>
- <object class="IBMutableOrderedSet" key="objectRecords">
- <object class="NSArray" key="orderedObjects">
- <bool key="EncodedWithXMLCoder">YES</bool>
- <object class="IBObjectRecord">
- <int key="objectID">0</int>
- <reference key="object" ref="0"/>
- <reference key="children" ref="1000"/>
- <nil key="parent"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">2</int>
- <reference key="object" ref="380026005"/>
- <object class="NSMutableArray" key="children">
- <bool key="EncodedWithXMLCoder">YES</bool>
- <reference ref="794372045"/>
- </object>
- <reference key="parent" ref="0"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">-1</int>
- <reference key="object" ref="841351856"/>
- <reference key="parent" ref="0"/>
- <string key="objectName">File's Owner</string>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">3</int>
- <reference key="object" ref="664661524"/>
- <reference key="parent" ref="0"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">-2</int>
- <reference key="object" ref="427554174"/>
- <reference key="parent" ref="0"/>
- </object>
- <object class="IBObjectRecord">
- <int key="objectID">10</int>
- <reference key="object" ref="794372045"/>
- <reference key="parent" ref="380026005"/>
- </object>
- </object>
- </object>
- <object class="NSMutableDictionary" key="flattenedProperties">
- <bool key="EncodedWithXMLCoder">YES</bool>
- <object class="NSArray" key="dict.sortedKeys">
- <bool key="EncodedWithXMLCoder">YES</bool>
- <string>-1.CustomClassName</string>
- <string>-2.CustomClassName</string>
- <string>10.IBPluginDependency</string>
- <string>10.IBViewBoundsToFrameTransform</string>
- <string>2.IBAttributePlaceholdersKey</string>
- <string>2.IBEditorWindowLastContentRect</string>
- <string>2.IBPluginDependency</string>
- <string>3.CustomClassName</string>
- <string>3.IBPluginDependency</string>
- </object>
- <object class="NSMutableArray" key="dict.values">
- <bool key="EncodedWithXMLCoder">YES</bool>
- <string>UIApplication</string>
- <string>UIResponder</string>
- <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
- <object class="NSAffineTransform">
- <bytes key="NSTransformStruct">P4AAAL+AAABDAAAAwrQAAA</bytes>
- </object>
- <object class="NSMutableDictionary">
- <bool key="EncodedWithXMLCoder">YES</bool>
- <reference key="dict.sortedKeys" ref="0"/>
- <object class="NSMutableArray" key="dict.values">
- <bool key="EncodedWithXMLCoder">YES</bool>
- </object>
- </object>
- <string>{{198, 376}, {320, 480}}</string>
- <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
- <string>SampleAppAppDelegate</string>
- <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
- </object>
- </object>
- <object class="NSMutableDictionary" key="unlocalizedProperties">
- <bool key="EncodedWithXMLCoder">YES</bool>
- <reference key="dict.sortedKeys" ref="0"/>
- <object class="NSMutableArray" key="dict.values">
- <bool key="EncodedWithXMLCoder">YES</bool>
- </object>
- </object>
- <nil key="activeLocalization"/>
- <object class="NSMutableDictionary" key="localizations">
- <bool key="EncodedWithXMLCoder">YES</bool>
- <reference key="dict.sortedKeys" ref="0"/>
- <object class="NSMutableArray" key="dict.values">
- <bool key="EncodedWithXMLCoder">YES</bool>
- </object>
- </object>
- <nil key="sourceID"/>
- <int key="maxID">11</int>
- </object>
- <object class="IBClassDescriber" key="IBDocument.Classes">
- <object class="NSMutableArray" key="referencedPartialClassDescriptions">
- <bool key="EncodedWithXMLCoder">YES</bool>
- <object class="IBPartialClassDescription">
- <string key="className">SampleAppAppDelegate</string>
- <string key="superclassName">NSObject</string>
- <object class="NSMutableDictionary" key="outlets">
- <bool key="EncodedWithXMLCoder">YES</bool>
- <object class="NSArray" key="dict.sortedKeys">
- <bool key="EncodedWithXMLCoder">YES</bool>
- <string>label</string>
- <string>window</string>
- </object>
- <object class="NSMutableArray" key="dict.values">
- <bool key="EncodedWithXMLCoder">YES</bool>
- <string>UILabel</string>
- <string>UIWindow</string>
- </object>
- </object>
- <object class="NSMutableDictionary" key="toOneOutletInfosByName">
- <bool key="EncodedWithXMLCoder">YES</bool>
- <object class="NSArray" key="dict.sortedKeys">
- <bool key="EncodedWithXMLCoder">YES</bool>
- <string>label</string>
- <string>window</string>
- </object>
- <object class="NSMutableArray" key="dict.values">
- <bool key="EncodedWithXMLCoder">YES</bool>
- <object class="IBToOneOutletInfo">
- <string key="name">label</string>
- <string key="candidateClassName">UILabel</string>
- </object>
- <object class="IBToOneOutletInfo">
- <string key="name">window</string>
- <string key="candidateClassName">UIWindow</string>
- </object>
- </object>
- </object>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBProjectSource</string>
- <string key="minorKey">Sample Classes/SampleAppAppDelegate.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">SampleAppAppDelegate</string>
- <string key="superclassName">NSObject</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBUserSource</string>
- <string key="minorKey"/>
- </object>
- </object>
- </object>
- <object class="NSMutableArray" key="referencedPartialClassDescriptionsV3.2+">
- <bool key="EncodedWithXMLCoder">YES</bool>
- <object class="IBPartialClassDescription">
- <string key="className">NSObject</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">Foundation.framework/Headers/NSError.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">NSObject</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">Foundation.framework/Headers/NSFileManager.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">NSObject</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">Foundation.framework/Headers/NSKeyValueCoding.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">NSObject</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">Foundation.framework/Headers/NSKeyValueObserving.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">NSObject</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">Foundation.framework/Headers/NSKeyedArchiver.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">NSObject</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">Foundation.framework/Headers/NSObject.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">NSObject</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">Foundation.framework/Headers/NSRunLoop.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">NSObject</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">Foundation.framework/Headers/NSThread.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">NSObject</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">Foundation.framework/Headers/NSURL.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">NSObject</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">Foundation.framework/Headers/NSURLConnection.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">NSObject</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">UIKit.framework/Headers/UIAccessibility.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">NSObject</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">UIKit.framework/Headers/UINibLoading.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">NSObject</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier" id="614033815">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">UIKit.framework/Headers/UIResponder.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">UIApplication</string>
- <string key="superclassName">UIResponder</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">UIKit.framework/Headers/UIApplication.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">UILabel</string>
- <string key="superclassName">UIView</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">UIKit.framework/Headers/UILabel.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">UIResponder</string>
- <string key="superclassName">NSObject</string>
- <reference key="sourceIdentifier" ref="614033815"/>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">UISearchBar</string>
- <string key="superclassName">UIView</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">UIKit.framework/Headers/UISearchBar.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">UISearchDisplayController</string>
- <string key="superclassName">NSObject</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">UIKit.framework/Headers/UISearchDisplayController.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">UIView</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">UIKit.framework/Headers/UIPrintFormatter.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">UIView</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">UIKit.framework/Headers/UITextField.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">UIView</string>
- <string key="superclassName">UIResponder</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">UIKit.framework/Headers/UIView.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">UIViewController</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">UIKit.framework/Headers/UINavigationController.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">UIViewController</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">UIKit.framework/Headers/UIPopoverController.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">UIViewController</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">UIKit.framework/Headers/UISplitViewController.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">UIViewController</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">UIKit.framework/Headers/UITabBarController.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">UIViewController</string>
- <string key="superclassName">UIResponder</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">UIKit.framework/Headers/UIViewController.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">UIWindow</string>
- <string key="superclassName">UIView</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">UIKit.framework/Headers/UIWindow.h</string>
- </object>
- </object>
- </object>
- </object>
- <int key="IBDocument.localizationMode">0</int>
- <string key="IBDocument.TargetRuntimeIdentifier">IBCocoaTouchFramework</string>
- <object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDependencyDefaults">
- <string key="NS.key.0">com.apple.InterfaceBuilder.CocoaTouchPlugin.iPhoneOS</string>
- <integer value="1056" key="NS.object.0"/>
- </object>
- <object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDevelopmentDependencies">
- <string key="NS.key.0">com.apple.InterfaceBuilder.CocoaTouchPlugin.InterfaceBuilder3</string>
- <integer value="3100" key="NS.object.0"/>
- </object>
- <bool key="IBDocument.PluginDeclaredDependenciesTrackSystemTargetVersion">YES</bool>
- <string key="IBDocument.LastKnownRelativeProjectPath">SampleApp.xcodeproj</string>
- <int key="IBDocument.defaultPropertyAccessControl">3</int>
- <string key="IBCocoaTouchPluginVersion">132</string>
- </data>
-</archive>
View
22 NetworkMonitor/NetworkMonitorSampleApp-Info.plist
@@ -1,22 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
- <key>CFBundleDevelopmentRegion</key>
- <string>English</string>
- <key>CFBundleExecutable</key>
- <string>${EXECUTABLE_NAME}</string>
- <key>CFBundleIdentifier</key>
- <string>com.jayway.cwnetworkmonitor.SampleApp</string>
- <key>CFBundleInfoDictionaryVersion</key>
- <string>6.0</string>
- <key>CFBundlePackageType</key>
- <string>APPL</string>
- <key>CFBundleSignature</key>
- <string>????</string>
- <key>CFBundleVersion</key>
- <string>1.0</string>
- <key>NSMainNibFile</key>
- <string>MainWindow</string>
-</dict>
-</plist>
View
42 NetworkMonitor/SampleAppAppDelegate.h
@@ -1,42 +0,0 @@
-//
-// SampleAppAppDelegate.h
-// CWFoundation
-// Created by Fredrik Olsson
-//
-// Copyright (c) 2011, Jayway AB All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without
-// modification, are permitted provided that the following conditions are met:
-// * Redistributions of source code must retain the above copyright
-// notice, this list of conditions and the following disclaimer.
-// * Redistributions in binary form must reproduce the above copyright
-// notice, this list of conditions and the following disclaimer in the
-// documentation and/or other materials provided with the distribution.
-// * Neither the name of the Jayway nor the names of its contributors may
-// be used to endorse or promote products derived from this software
-// without specific prior written permission.
-//
-// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
-// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-// DISCLAIMED. IN NO EVENT SHALL JAYWAY AB BE LIABLE FOR ANY DIRECT, INDIRECT,
-// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
-// PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
-// LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
-// OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
-// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-
-#import <UIKit/UIKit.h>
-
-@interface SampleAppAppDelegate : NSObject <UIApplicationDelegate> {
- UIWindow *window;
- UILabel* label;
-}
-
-@property (nonatomic, retain) IBOutlet UIWindow *window;
-@property (nonatomic, retain) IBOutlet UILabel *label;
-
-@end
-
View
82 NetworkMonitor/SampleAppAppDelegate.m
@@ -1,82 +0,0 @@
-//
-// SampleAppAppDelegate.m
-// CWFoundation
-// Created by Fredrik Olsson
-//
-// Copyright (c) 2011, Jayway AB All rights reserved.
-//
-// Redistribution and use in source and binary forms, with or without
-// modification, are permitted provided that the following conditions are met:
-// * Redistributions of source code must retain the above copyright
-// notice, this list of conditions and the following disclaimer.
-// * Redistributions in binary form must reproduce the above copyright
-// notice, this list of conditions and the following disclaimer in the
-// documentation and/or other materials provided with the distribution.
-// * Neither the name of the Jayway nor the names of its contributors may
-// be used to endorse or promote products derived from this software
-// without specific prior written permission.
-//
-// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
-// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-// DISCLAIMED. IN NO EVENT SHALL JAYWAY AB BE LIABLE FOR ANY DIRECT, INDIRECT,
-// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
-// PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
-// LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
-// OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
-// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
-
-#import "SampleAppAppDelegate.h"
-#import "CWNetworkMonitor.h"
-
-@implementation SampleAppAppDelegate
-
-@synthesize window, label;
-
-
--(void)updateLabelWithNetworkStatus:(CWNetworkStatus)status;
-{
- switch (status) {
- case CWNetworkStatusUnknown:
- self.label.text = @"Network access unknown";
- break;
- case CWNetworkStatusNotAvailable:
- self.label.text = @"Network access not available";
- break;
- case CWNetworkStatusAvailableViaWWAN:
- self.label.text = @"Network access with WWAN";
- break;
- case CWNetworkStatusAvailableViaWiFi:
- self.label.text = @"Network access with WiFi";
- break;
- }
-}
-
--(void)netWorkStatusDidChangeNotification:(NSNotification*)notification;
-{
- CWNetworkMonitor* monitor = [notification object];
- [self updateLabelWithNetworkStatus:[monitor networkStatus]];
-}
-
-- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions;
-{
- // Register for network status updates.
- [[NSNotificationCenter defaultCenter] addObserver:self
- selector:@selector(netWorkStatusDidChangeNotification:)
- name:CWNetWorkStatusDidChangeNotification
- object:nil];
-
- CWNetworkMonitor* monitor = [CWNetworkMonitor defaultMonitor];
-
- // Start monitoring for network updates, will trigger an initial async check.
- [monitor startMonitoringNetworkStatus];
-
- [self updateLabelWithNetworkStatus:[monitor networkStatus]];
-
- [self.window makeKeyAndVisible];
- return YES;
-}
-
-@end
View
5 README
@@ -13,9 +13,8 @@ You add this project as a sub project in Xcode like this:
4. Add <Path To CWFoundation>/** to user header search paths.
5. Add -all_load to other linker flags.
-You must link against:
-* Foundation.framework
-* SystemConfiguration.framework
+The CWNetworkMonitor target containst an improved version of the Reachability
+sample code, and must be linked against SystemConfiguration.framework.
Functionality
Please sign in to comment.
Something went wrong with that request. Please try again.