added download feature for iOS port
required libs:
* ZipArchive - Obj-C impl of zip
* asi-http-request : http request help to assist with asynchoronous downloading of files
* minizip : support for ZipArchive
*
Added default splash screen for iOS app. (using the Wagic background to keep it neutral to module)
TODO: refine handling for iPad splash screen
* add selection screen and input screen for location of downloadable content. (ie core files, image files, etc )
* add support to opt out of backing up to iCloud for core files. Right now iOS will automatically backup all files under Documents folder to iCloud. Consider only allowing player data to be backed up to iCloud. All graphics and other assets are considered volatile.
|
After Width: | Height: | Size: 2.0 KiB |
@@ -0,0 +1,70 @@
|
||||
/*
|
||||
|
||||
File: ReachabilityAppDelegate.h
|
||||
Abstract: The application's controller.
|
||||
|
||||
Version: 2.0
|
||||
|
||||
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) 2009 Apple Inc. All Rights Reserved.
|
||||
|
||||
*/
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
@class Reachability;
|
||||
@interface ReachabilityAppDelegate: NSObject {
|
||||
IBOutlet UIWindow* window;
|
||||
IBOutlet UIView* contentView;
|
||||
IBOutlet UILabel* summaryLabel;
|
||||
|
||||
IBOutlet UITextField* remoteHostLabel;
|
||||
IBOutlet UIImageView* remoteHostIcon;
|
||||
IBOutlet UITextField* remoteHostStatusField;
|
||||
|
||||
IBOutlet UIImageView* internetConnectionIcon;
|
||||
IBOutlet UITextField* internetConnectionStatusField;
|
||||
|
||||
IBOutlet UIImageView* localWiFiConnectionIcon;
|
||||
IBOutlet UITextField* localWiFiConnectionStatusField;
|
||||
|
||||
Reachability* hostReach;
|
||||
Reachability* internetReach;
|
||||
Reachability* wifiReach;
|
||||
}
|
||||
@end
|
||||
@@ -0,0 +1,157 @@
|
||||
/*
|
||||
|
||||
File: ReachabilityAppDelegate.m
|
||||
Abstract: The application's controller.
|
||||
|
||||
Version: 2.0
|
||||
|
||||
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) 2009 Apple Inc. All Rights Reserved.
|
||||
|
||||
*/
|
||||
|
||||
#import "ReachabilityAppDelegate.h"
|
||||
#import "Reachability.h"
|
||||
|
||||
@implementation ReachabilityAppDelegate
|
||||
|
||||
- (void) configureTextField: (UITextField*) textField imageView: (UIImageView*) imageView reachability: (Reachability*) curReach
|
||||
{
|
||||
NetworkStatus netStatus = [curReach currentReachabilityStatus];
|
||||
BOOL connectionRequired= [curReach connectionRequired];
|
||||
NSString* statusString= @"";
|
||||
switch (netStatus)
|
||||
{
|
||||
case NotReachable:
|
||||
{
|
||||
statusString = @"Access Not Available";
|
||||
imageView.image = [UIImage imageNamed: @"stop-32.png"] ;
|
||||
//Minor interface detail- connectionRequired may return yes, even when the host is unreachable. We cover that up here...
|
||||
connectionRequired= NO;
|
||||
break;
|
||||
}
|
||||
|
||||
case ReachableViaWWAN:
|
||||
{
|
||||
statusString = @"Reachable WWAN";
|
||||
imageView.image = [UIImage imageNamed: @"WWAN5.png"];
|
||||
break;
|
||||
}
|
||||
case ReachableViaWiFi:
|
||||
{
|
||||
statusString= @"Reachable WiFi";
|
||||
imageView.image = [UIImage imageNamed: @"Airport.png"];
|
||||
break;
|
||||
}
|
||||
}
|
||||
if(connectionRequired)
|
||||
{
|
||||
statusString= [NSString stringWithFormat: @"%@, Connection Required", statusString];
|
||||
}
|
||||
textField.text= statusString;
|
||||
}
|
||||
|
||||
- (void) updateInterfaceWithReachability: (Reachability*) curReach
|
||||
{
|
||||
if(curReach == hostReach)
|
||||
{
|
||||
[self configureTextField: remoteHostStatusField imageView: remoteHostIcon reachability: curReach];
|
||||
NetworkStatus netStatus = [curReach currentReachabilityStatus];
|
||||
BOOL connectionRequired= [curReach connectionRequired];
|
||||
|
||||
summaryLabel.hidden = (netStatus != ReachableViaWWAN);
|
||||
NSString* baseLabel= @"";
|
||||
if(connectionRequired)
|
||||
{
|
||||
baseLabel= @"Cellular data network is available.\n Internet traffic will be routed through it after a connection is established.";
|
||||
}
|
||||
else
|
||||
{
|
||||
baseLabel= @"Cellular data network is active.\n Internet traffic will be routed through it.";
|
||||
}
|
||||
summaryLabel.text= baseLabel;
|
||||
}
|
||||
if(curReach == internetReach)
|
||||
{
|
||||
[self configureTextField: internetConnectionStatusField imageView: internetConnectionIcon reachability: curReach];
|
||||
}
|
||||
if(curReach == wifiReach)
|
||||
{
|
||||
[self configureTextField: localWiFiConnectionStatusField imageView: localWiFiConnectionIcon reachability: curReach];
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
//Called by Reachability whenever status changes.
|
||||
- (void) reachabilityChanged: (NSNotification* )note
|
||||
{
|
||||
Reachability* curReach = [note object];
|
||||
NSParameterAssert([curReach isKindOfClass: [Reachability class]]);
|
||||
[self updateInterfaceWithReachability: curReach];
|
||||
}
|
||||
|
||||
|
||||
- (void) applicationDidFinishLaunching: (UIApplication* )application
|
||||
{
|
||||
contentView.backgroundColor = [UIColor groupTableViewBackgroundColor];
|
||||
|
||||
summaryLabel.hidden = YES;
|
||||
|
||||
|
||||
// Observe the kNetworkReachabilityChangedNotification. When that notification is posted, the
|
||||
// method "reachabilityChanged" will be called.
|
||||
[[NSNotificationCenter defaultCenter] addObserver: self selector: @selector(reachabilityChanged:) name: kReachabilityChangedNotification object: nil];
|
||||
|
||||
//Change the host name here to change the server your monitoring
|
||||
remoteHostLabel.text = [NSString stringWithFormat: @"Remote Host: %@", @"www.apple.com"];
|
||||
hostReach = [[Reachability reachabilityWithHostName: @"www.apple.com"] retain];
|
||||
[hostReach startNotifier];
|
||||
[self updateInterfaceWithReachability: hostReach];
|
||||
|
||||
internetReach = [[Reachability reachabilityForInternetConnection] retain];
|
||||
[internetReach startNotifier];
|
||||
[self updateInterfaceWithReachability: internetReach];
|
||||
|
||||
wifiReach = [[Reachability reachabilityForLocalWiFi] retain];
|
||||
[wifiReach startNotifier];
|
||||
[self updateInterfaceWithReachability: wifiReach];
|
||||
|
||||
[window makeKeyAndVisible];
|
||||
|
||||
}
|
||||
@end
|
||||
|
After Width: | Height: | Size: 4.9 KiB |
@@ -0,0 +1,568 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<archive type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="7.03">
|
||||
<data>
|
||||
<int key="IBDocument.SystemTarget">512</int>
|
||||
<string key="IBDocument.SystemVersion">9J61</string>
|
||||
<string key="IBDocument.InterfaceBuilderVersion">677</string>
|
||||
<string key="IBDocument.AppKitVersion">949.46</string>
|
||||
<string key="IBDocument.HIToolboxVersion">353.00</string>
|
||||
<object class="NSMutableArray" key="IBDocument.EditedObjectIDs">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<integer value="7"/>
|
||||
</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">
|
||||
<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>
|
||||
</object>
|
||||
<object class="IBProxyObject" id="841400030">
|
||||
<string key="IBProxiedObjectIdentifier">IBFirstResponder</string>
|
||||
</object>
|
||||
<object class="IBUICustomObject" id="987256611"/>
|
||||
<object class="IBUIWindow" id="380026005">
|
||||
<reference key="NSNextResponder"/>
|
||||
<int key="NSvFlags">1292</int>
|
||||
<object class="NSMutableArray" key="NSSubviews">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<object class="IBUIView" id="388289409">
|
||||
<reference key="NSNextResponder" ref="380026005"/>
|
||||
<int key="NSvFlags">1298</int>
|
||||
<object class="NSMutableArray" key="NSSubviews">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<object class="IBUILabel" id="1041619883">
|
||||
<reference key="NSNextResponder" ref="388289409"/>
|
||||
<int key="NSvFlags">1306</int>
|
||||
<string key="NSFrame">{{8, 318}, {303, 99}}</string>
|
||||
<reference key="NSSuperview" ref="388289409"/>
|
||||
<bool key="IBUIOpaque">NO</bool>
|
||||
<bool key="IBUIClipsSubviews">YES</bool>
|
||||
<bool key="IBUIUserInteractionEnabled">NO</bool>
|
||||
<string type="base64-UTF8" key="IBUIText">Q2VsbHVsYXIgZGF0YSBuZXR3b3JrIGlzIGF2YWlsYWJsZS4KSW50ZXJuZXQgdHJhZmZpYyB3aWxsIGJl
|
||||
IHJvdXRlZCB0aHJvdWdoIGl0Lg</string>
|
||||
<object class="NSColor" key="IBUITextColor">
|
||||
<int key="NSColorSpace">1</int>
|
||||
<bytes key="NSRGB">MSAwIDAAA</bytes>
|
||||
</object>
|
||||
<nil key="IBUIHighlightedColor"/>
|
||||
<int key="IBUIBaselineAdjustment">1</int>
|
||||
<bool key="IBUIAdjustsFontSizeToFit">NO</bool>
|
||||
<float key="IBUIMinimumFontSize">1.400000e+01</float>
|
||||
<int key="IBUINumberOfLines">0</int>
|
||||
<int key="IBUITextAlignment">1</int>
|
||||
</object>
|
||||
<object class="IBUIImageView" id="355548833">
|
||||
<reference key="NSNextResponder" ref="388289409"/>
|
||||
<int key="NSvFlags">1316</int>
|
||||
<string key="NSFrame">{{20, 61}, {32, 32}}</string>
|
||||
<reference key="NSSuperview" ref="388289409"/>
|
||||
<bool key="IBUIOpaque">NO</bool>
|
||||
<bool key="IBUIClearsContextBeforeDrawing">NO</bool>
|
||||
<int key="IBUIContentMode">4</int>
|
||||
<bool key="IBUIUserInteractionEnabled">NO</bool>
|
||||
</object>
|
||||
<object class="IBUIImageView" id="917119444">
|
||||
<reference key="NSNextResponder" ref="388289409"/>
|
||||
<int key="NSvFlags">1316</int>
|
||||
<string key="NSFrame">{{20, 155}, {32, 32}}</string>
|
||||
<reference key="NSSuperview" ref="388289409"/>
|
||||
<bool key="IBUIOpaque">NO</bool>
|
||||
<bool key="IBUIClearsContextBeforeDrawing">NO</bool>
|
||||
<int key="IBUIContentMode">4</int>
|
||||
<bool key="IBUIUserInteractionEnabled">NO</bool>
|
||||
</object>
|
||||
<object class="IBUITextField" id="167828665">
|
||||
<reference key="NSNextResponder" ref="388289409"/>
|
||||
<int key="NSvFlags">1316</int>
|
||||
<string key="NSFrame">{{60, 62}, {240, 31}}</string>
|
||||
<reference key="NSSuperview" ref="388289409"/>
|
||||
<bool key="IBUIOpaque">NO</bool>
|
||||
<bool key="IBUIClearsContextBeforeDrawing">NO</bool>
|
||||
<int key="IBUIContentVerticalAlignment">0</int>
|
||||
<string key="IBUIText"/>
|
||||
<int key="IBUIBorderStyle">3</int>
|
||||
<object class="NSColor" key="IBUITextColor">
|
||||
<int key="NSColorSpace">3</int>
|
||||
<bytes key="NSWhite">MAA</bytes>
|
||||
<object class="NSColorSpace" key="NSCustomColorSpace" id="719928199">
|
||||
<int key="NSID">2</int>
|
||||
</object>
|
||||
</object>
|
||||
<bool key="IBUIClearsOnBeginEditing">YES</bool>
|
||||
<bool key="IBUIAdjustsFontSizeToFit">YES</bool>
|
||||
<float key="IBUIMinimumFontSize">1.200000e+01</float>
|
||||
<object class="IBUITextInputTraits" key="IBUITextInputTraits"/>
|
||||
</object>
|
||||
<object class="IBUITextField" id="503258438">
|
||||
<reference key="NSNextResponder" ref="388289409"/>
|
||||
<int key="NSvFlags">1316</int>
|
||||
<string key="NSFrame">{{20, 25}, {280, 29}}</string>
|
||||
<reference key="NSSuperview" ref="388289409"/>
|
||||
<bool key="IBUIOpaque">NO</bool>
|
||||
<bool key="IBUIClearsContextBeforeDrawing">NO</bool>
|
||||
<int key="IBUIContentVerticalAlignment">0</int>
|
||||
<string key="IBUIText">Remote Host:</string>
|
||||
<object class="NSColor" key="IBUITextColor">
|
||||
<int key="NSColorSpace">3</int>
|
||||
<bytes key="NSWhite">MAA</bytes>
|
||||
<reference key="NSCustomColorSpace" ref="719928199"/>
|
||||
</object>
|
||||
<object class="NSFont" key="IBUIFont" id="453874746">
|
||||
<string key="NSName">Helvetica</string>
|
||||
<double key="NSSize">1.900000e+01</double>
|
||||
<int key="NSfFlags">16</int>
|
||||
</object>
|
||||
<bool key="IBUIClearsOnBeginEditing">YES</bool>
|
||||
<bool key="IBUIAdjustsFontSizeToFit">YES</bool>
|
||||
<float key="IBUIMinimumFontSize">2.900000e+01</float>
|
||||
<object class="IBUITextInputTraits" key="IBUITextInputTraits"/>
|
||||
</object>
|
||||
<object class="IBUITextField" id="898416413">
|
||||
<reference key="NSNextResponder" ref="388289409"/>
|
||||
<int key="NSvFlags">1316</int>
|
||||
<string key="NSFrame">{{60, 155}, {240, 31}}</string>
|
||||
<reference key="NSSuperview" ref="388289409"/>
|
||||
<bool key="IBUIOpaque">NO</bool>
|
||||
<bool key="IBUIClearsContextBeforeDrawing">NO</bool>
|
||||
<int key="IBUIContentVerticalAlignment">0</int>
|
||||
<string key="IBUIText"/>
|
||||
<int key="IBUIBorderStyle">3</int>
|
||||
<object class="NSColor" key="IBUITextColor">
|
||||
<int key="NSColorSpace">3</int>
|
||||
<bytes key="NSWhite">MAA</bytes>
|
||||
<reference key="NSCustomColorSpace" ref="719928199"/>
|
||||
</object>
|
||||
<bool key="IBUIClearsOnBeginEditing">YES</bool>
|
||||
<bool key="IBUIAdjustsFontSizeToFit">YES</bool>
|
||||
<float key="IBUIMinimumFontSize">1.200000e+01</float>
|
||||
<object class="IBUITextInputTraits" key="IBUITextInputTraits"/>
|
||||
</object>
|
||||
<object class="IBUITextField" id="154536692">
|
||||
<reference key="NSNextResponder" ref="388289409"/>
|
||||
<int key="NSvFlags">1316</int>
|
||||
<string key="NSFrame">{{20, 117}, {280, 29}}</string>
|
||||
<reference key="NSSuperview" ref="388289409"/>
|
||||
<bool key="IBUIOpaque">NO</bool>
|
||||
<bool key="IBUIClearsContextBeforeDrawing">NO</bool>
|
||||
<int key="IBUIContentVerticalAlignment">0</int>
|
||||
<string key="IBUIText">TCP/IP Routing Available</string>
|
||||
<object class="NSColor" key="IBUITextColor">
|
||||
<int key="NSColorSpace">3</int>
|
||||
<bytes key="NSWhite">MAA</bytes>
|
||||
<reference key="NSCustomColorSpace" ref="719928199"/>
|
||||
</object>
|
||||
<reference key="IBUIFont" ref="453874746"/>
|
||||
<bool key="IBUIClearsOnBeginEditing">YES</bool>
|
||||
<bool key="IBUIAdjustsFontSizeToFit">YES</bool>
|
||||
<float key="IBUIMinimumFontSize">2.900000e+01</float>
|
||||
<object class="IBUITextInputTraits" key="IBUITextInputTraits"/>
|
||||
</object>
|
||||
<object class="IBUIImageView" id="670228971">
|
||||
<reference key="NSNextResponder" ref="388289409"/>
|
||||
<int key="NSvFlags">1316</int>
|
||||
<string key="NSFrame">{{20, 253}, {32, 32}}</string>
|
||||
<reference key="NSSuperview" ref="388289409"/>
|
||||
<bool key="IBUIOpaque">NO</bool>
|
||||
<bool key="IBUIClearsContextBeforeDrawing">NO</bool>
|
||||
<int key="IBUIContentMode">4</int>
|
||||
<bool key="IBUIUserInteractionEnabled">NO</bool>
|
||||
</object>
|
||||
<object class="IBUITextField" id="369550247">
|
||||
<reference key="NSNextResponder" ref="388289409"/>
|
||||
<int key="NSvFlags">1316</int>
|
||||
<string key="NSFrame">{{60, 254}, {240, 31}}</string>
|
||||
<reference key="NSSuperview" ref="388289409"/>
|
||||
<bool key="IBUIOpaque">NO</bool>
|
||||
<bool key="IBUIClearsContextBeforeDrawing">NO</bool>
|
||||
<int key="IBUIContentVerticalAlignment">0</int>
|
||||
<string key="IBUIText"/>
|
||||
<int key="IBUIBorderStyle">3</int>
|
||||
<object class="NSColor" key="IBUITextColor">
|
||||
<int key="NSColorSpace">3</int>
|
||||
<bytes key="NSWhite">MAA</bytes>
|
||||
<reference key="NSCustomColorSpace" ref="719928199"/>
|
||||
</object>
|
||||
<bool key="IBUIClearsOnBeginEditing">YES</bool>
|
||||
<bool key="IBUIAdjustsFontSizeToFit">YES</bool>
|
||||
<float key="IBUIMinimumFontSize">1.200000e+01</float>
|
||||
<object class="IBUITextInputTraits" key="IBUITextInputTraits"/>
|
||||
</object>
|
||||
<object class="IBUITextField" id="633401159">
|
||||
<reference key="NSNextResponder" ref="388289409"/>
|
||||
<int key="NSvFlags">1316</int>
|
||||
<string key="NSFrame">{{20, 216}, {280, 29}}</string>
|
||||
<reference key="NSSuperview" ref="388289409"/>
|
||||
<bool key="IBUIOpaque">NO</bool>
|
||||
<bool key="IBUIClearsContextBeforeDrawing">NO</bool>
|
||||
<int key="IBUIContentVerticalAlignment">0</int>
|
||||
<string key="IBUIText">Local WiFi</string>
|
||||
<object class="NSColor" key="IBUITextColor">
|
||||
<int key="NSColorSpace">3</int>
|
||||
<bytes key="NSWhite">MAA</bytes>
|
||||
<reference key="NSCustomColorSpace" ref="719928199"/>
|
||||
</object>
|
||||
<reference key="IBUIFont" ref="453874746"/>
|
||||
<bool key="IBUIClearsOnBeginEditing">YES</bool>
|
||||
<bool key="IBUIAdjustsFontSizeToFit">YES</bool>
|
||||
<float key="IBUIMinimumFontSize">2.900000e+01</float>
|
||||
<object class="IBUITextInputTraits" key="IBUITextInputTraits"/>
|
||||
</object>
|
||||
</object>
|
||||
<string key="NSFrameSize">{320, 480}</string>
|
||||
<reference key="NSSuperview" ref="380026005"/>
|
||||
<object class="NSColor" key="IBUIBackgroundColor">
|
||||
<int key="NSColorSpace">3</int>
|
||||
<bytes key="NSWhite">MQA</bytes>
|
||||
<reference key="NSCustomColorSpace" ref="719928199"/>
|
||||
</object>
|
||||
<bool key="IBUIClearsContextBeforeDrawing">NO</bool>
|
||||
<bool key="IBUIUserInteractionEnabled">NO</bool>
|
||||
</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>
|
||||
</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="987256611"/>
|
||||
</object>
|
||||
<int key="connectionID">5</int>
|
||||
</object>
|
||||
<object class="IBConnectionRecord">
|
||||
<object class="IBCocoaTouchOutletConnection" key="connection">
|
||||
<string key="label">window</string>
|
||||
<reference key="source" ref="987256611"/>
|
||||
<reference key="destination" ref="380026005"/>
|
||||
</object>
|
||||
<int key="connectionID">6</int>
|
||||
</object>
|
||||
<object class="IBConnectionRecord">
|
||||
<object class="IBCocoaTouchOutletConnection" key="connection">
|
||||
<string key="label">contentView</string>
|
||||
<reference key="source" ref="987256611"/>
|
||||
<reference key="destination" ref="388289409"/>
|
||||
</object>
|
||||
<int key="connectionID">8</int>
|
||||
</object>
|
||||
<object class="IBConnectionRecord">
|
||||
<object class="IBCocoaTouchOutletConnection" key="connection">
|
||||
<string key="label">summaryLabel</string>
|
||||
<reference key="source" ref="987256611"/>
|
||||
<reference key="destination" ref="1041619883"/>
|
||||
</object>
|
||||
<int key="connectionID">10</int>
|
||||
</object>
|
||||
<object class="IBConnectionRecord">
|
||||
<object class="IBCocoaTouchOutletConnection" key="connection">
|
||||
<string key="label">internetConnectionStatusField</string>
|
||||
<reference key="source" ref="987256611"/>
|
||||
<reference key="destination" ref="898416413"/>
|
||||
</object>
|
||||
<int key="connectionID">21</int>
|
||||
</object>
|
||||
<object class="IBConnectionRecord">
|
||||
<object class="IBCocoaTouchOutletConnection" key="connection">
|
||||
<string key="label">remoteHostIcon</string>
|
||||
<reference key="source" ref="987256611"/>
|
||||
<reference key="destination" ref="355548833"/>
|
||||
</object>
|
||||
<int key="connectionID">24</int>
|
||||
</object>
|
||||
<object class="IBConnectionRecord">
|
||||
<object class="IBCocoaTouchOutletConnection" key="connection">
|
||||
<string key="label">remoteHostLabel</string>
|
||||
<reference key="source" ref="987256611"/>
|
||||
<reference key="destination" ref="503258438"/>
|
||||
</object>
|
||||
<int key="connectionID">27</int>
|
||||
</object>
|
||||
<object class="IBConnectionRecord">
|
||||
<object class="IBCocoaTouchOutletConnection" key="connection">
|
||||
<string key="label">remoteHostStatusField</string>
|
||||
<reference key="source" ref="987256611"/>
|
||||
<reference key="destination" ref="167828665"/>
|
||||
</object>
|
||||
<int key="connectionID">28</int>
|
||||
</object>
|
||||
<object class="IBConnectionRecord">
|
||||
<object class="IBCocoaTouchOutletConnection" key="connection">
|
||||
<string key="label">internetConnectionIcon</string>
|
||||
<reference key="source" ref="987256611"/>
|
||||
<reference key="destination" ref="917119444"/>
|
||||
</object>
|
||||
<int key="connectionID">30</int>
|
||||
</object>
|
||||
<object class="IBConnectionRecord">
|
||||
<object class="IBCocoaTouchOutletConnection" key="connection">
|
||||
<string key="label">localWiFiConnectionIcon</string>
|
||||
<reference key="source" ref="987256611"/>
|
||||
<reference key="destination" ref="670228971"/>
|
||||
</object>
|
||||
<int key="connectionID">35</int>
|
||||
</object>
|
||||
<object class="IBConnectionRecord">
|
||||
<object class="IBCocoaTouchOutletConnection" key="connection">
|
||||
<string key="label">localWiFiConnectionStatusField</string>
|
||||
<reference key="source" ref="987256611"/>
|
||||
<reference key="destination" ref="369550247"/>
|
||||
</object>
|
||||
<int key="connectionID">36</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>
|
||||
<object class="NSArray" key="object" id="686063971">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
</object>
|
||||
<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="388289409"/>
|
||||
</object>
|
||||
<reference key="parent" ref="686063971"/>
|
||||
</object>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">-1</int>
|
||||
<reference key="object" ref="841351856"/>
|
||||
<reference key="parent" ref="686063971"/>
|
||||
<string type="base64-UTF8" key="objectName">RmlsZSdzIE93bmVyA</string>
|
||||
</object>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">4</int>
|
||||
<reference key="object" ref="987256611"/>
|
||||
<reference key="parent" ref="686063971"/>
|
||||
<string key="objectName">ReachabilityAppDelegate</string>
|
||||
</object>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">7</int>
|
||||
<reference key="object" ref="388289409"/>
|
||||
<object class="NSMutableArray" key="children">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<reference ref="670228971"/>
|
||||
<reference ref="369550247"/>
|
||||
<reference ref="633401159"/>
|
||||
<reference ref="898416413"/>
|
||||
<reference ref="355548833"/>
|
||||
<reference ref="167828665"/>
|
||||
<reference ref="503258438"/>
|
||||
<reference ref="154536692"/>
|
||||
<reference ref="917119444"/>
|
||||
<reference ref="1041619883"/>
|
||||
</object>
|
||||
<reference key="parent" ref="380026005"/>
|
||||
</object>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">9</int>
|
||||
<reference key="object" ref="1041619883"/>
|
||||
<reference key="parent" ref="388289409"/>
|
||||
</object>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">-2</int>
|
||||
<reference key="object" ref="841400030"/>
|
||||
<reference key="parent" ref="686063971"/>
|
||||
</object>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">11</int>
|
||||
<reference key="object" ref="355548833"/>
|
||||
<reference key="parent" ref="388289409"/>
|
||||
</object>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">12</int>
|
||||
<reference key="object" ref="167828665"/>
|
||||
<reference key="parent" ref="388289409"/>
|
||||
</object>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">13</int>
|
||||
<reference key="object" ref="503258438"/>
|
||||
<reference key="parent" ref="388289409"/>
|
||||
</object>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">15</int>
|
||||
<reference key="object" ref="898416413"/>
|
||||
<reference key="parent" ref="388289409"/>
|
||||
</object>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">16</int>
|
||||
<reference key="object" ref="154536692"/>
|
||||
<reference key="parent" ref="388289409"/>
|
||||
</object>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">17</int>
|
||||
<reference key="object" ref="670228971"/>
|
||||
<reference key="parent" ref="388289409"/>
|
||||
</object>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">18</int>
|
||||
<reference key="object" ref="369550247"/>
|
||||
<reference key="parent" ref="388289409"/>
|
||||
</object>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">19</int>
|
||||
<reference key="object" ref="633401159"/>
|
||||
<reference key="parent" ref="388289409"/>
|
||||
</object>
|
||||
<object class="IBObjectRecord">
|
||||
<int key="objectID">29</int>
|
||||
<reference key="object" ref="917119444"/>
|
||||
<reference key="parent" ref="388289409"/>
|
||||
</object>
|
||||
</object>
|
||||
</object>
|
||||
<object class="NSMutableDictionary" key="flattenedProperties">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<object class="NSMutableArray" key="dict.sortedKeys">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<string>-1.CustomClassName</string>
|
||||
<string>-2.CustomClassName</string>
|
||||
<string>11.IBPluginDependency</string>
|
||||
<string>12.IBPluginDependency</string>
|
||||
<string>13.IBPluginDependency</string>
|
||||
<string>15.IBPluginDependency</string>
|
||||
<string>16.IBPluginDependency</string>
|
||||
<string>17.IBPluginDependency</string>
|
||||
<string>18.IBPluginDependency</string>
|
||||
<string>19.IBPluginDependency</string>
|
||||
<string>2.IBAttributePlaceholdersKey</string>
|
||||
<string>2.IBEditorWindowLastContentRect</string>
|
||||
<string>2.IBPluginDependency</string>
|
||||
<string>2.UIWindow.visibleAtLaunch</string>
|
||||
<string>29.IBPluginDependency</string>
|
||||
<string>4.CustomClassName</string>
|
||||
<string>4.IBPluginDependency</string>
|
||||
<string>7.IBPluginDependency</string>
|
||||
<string>9.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>
|
||||
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
<object class="NSMutableDictionary">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<object class="NSArray" key="dict.sortedKeys">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
</object>
|
||||
<object class="NSMutableArray" key="dict.values">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
</object>
|
||||
</object>
|
||||
<string>{{287, 643}, {320, 480}}</string>
|
||||
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
<integer value="1"/>
|
||||
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
<string>ReachabilityAppDelegate</string>
|
||||
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="NSMutableDictionary" key="unlocalizedProperties">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<object class="NSArray" key="dict.sortedKeys">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
</object>
|
||||
<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>
|
||||
<object class="NSArray" key="dict.sortedKeys">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
</object>
|
||||
<object class="NSMutableArray" key="dict.values">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
</object>
|
||||
</object>
|
||||
<nil key="sourceID"/>
|
||||
<int key="maxID">36</int>
|
||||
</object>
|
||||
<object class="IBClassDescriber" key="IBDocument.Classes">
|
||||
<object class="NSMutableArray" key="referencedPartialClassDescriptions">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">ReachabilityAppDelegate</string>
|
||||
<string key="superclassName">NSObject</string>
|
||||
<object class="NSMutableDictionary" key="outlets">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<object class="NSMutableArray" key="dict.sortedKeys">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<string>contentView</string>
|
||||
<string>internetConnectionIcon</string>
|
||||
<string>internetConnectionStatusField</string>
|
||||
<string>localWiFiConnectionIcon</string>
|
||||
<string>localWiFiConnectionStatusField</string>
|
||||
<string>remoteHostIcon</string>
|
||||
<string>remoteHostLabel</string>
|
||||
<string>remoteHostStatusField</string>
|
||||
<string>summaryLabel</string>
|
||||
<string>window</string>
|
||||
</object>
|
||||
<object class="NSMutableArray" key="dict.values">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<string>UIView</string>
|
||||
<string>UIImageView</string>
|
||||
<string>UITextField</string>
|
||||
<string>UIImageView</string>
|
||||
<string>UITextField</string>
|
||||
<string>UIImageView</string>
|
||||
<string>UITextField</string>
|
||||
<string>UITextField</string>
|
||||
<string>UILabel</string>
|
||||
<string>UIWindow</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBProjectSource</string>
|
||||
<string key="minorKey">Classes/ReachabilityAppDelegate.h</string>
|
||||
</object>
|
||||
</object>
|
||||
</object>
|
||||
</object>
|
||||
<int key="IBDocument.localizationMode">0</int>
|
||||
<string key="IBDocument.LastKnownRelativeProjectPath">Reachability.xcodeproj</string>
|
||||
<int key="IBDocument.defaultPropertyAccessControl">3</int>
|
||||
<string key="IBCocoaTouchPluginVersion">3.0</string>
|
||||
</data>
|
||||
</archive>
|
||||
|
After Width: | Height: | Size: 2.1 KiB |
@@ -0,0 +1,30 @@
|
||||
<?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>CFBundleDisplayName</key>
|
||||
<string>${PRODUCT_NAME}</string>
|
||||
<key>CFBundleExecutable</key>
|
||||
<string>${EXECUTABLE_NAME}</string>
|
||||
<key>CFBundleIconFile</key>
|
||||
<string></string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>com.yourcompany.${PRODUCT_NAME:rfc1034identifier}</string>
|
||||
<key>CFBundleInfoDictionaryVersion</key>
|
||||
<string>6.0</string>
|
||||
<key>CFBundleName</key>
|
||||
<string>${PRODUCT_NAME}</string>
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>APPL</string>
|
||||
<key>CFBundleSignature</key>
|
||||
<string>????</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>1.0</string>
|
||||
<key>LSRequiresIPhoneOS</key>
|
||||
<true/>
|
||||
<key>NSMainNibFile</key>
|
||||
<string>MainWindow</string>
|
||||
</dict>
|
||||
</plist>
|
||||
@@ -0,0 +1,175 @@
|
||||
// !$*UTF8*$!
|
||||
{
|
||||
1D6058900D05DD3D006BFB54 /* Reachability */ = {
|
||||
activeExec = 0;
|
||||
executables = (
|
||||
CEAC717A10E9227C00087CCD /* Reachability */,
|
||||
);
|
||||
};
|
||||
29B97313FDCFA39411CA2CEA /* Project object */ = {
|
||||
activeBuildConfigurationName = Debug;
|
||||
activeExecutable = CEAC717A10E9227C00087CCD /* Reachability */;
|
||||
activeSDKPreference = iphonesimulator3.1.2;
|
||||
activeTarget = 1D6058900D05DD3D006BFB54 /* Reachability */;
|
||||
addToTargets = (
|
||||
1D6058900D05DD3D006BFB54 /* Reachability */,
|
||||
);
|
||||
breakpoints = (
|
||||
CEAC722610E92B0F00087CCD /* Reachability.m:426 */,
|
||||
);
|
||||
codeSenseManager = CEAC718410E9228600087CCD /* Code sense */;
|
||||
executables = (
|
||||
CEAC717A10E9227C00087CCD /* Reachability */,
|
||||
);
|
||||
perUserDictionary = {
|
||||
PBXConfiguration.PBXFileTableDataSource3.PBXFileTableDataSource = {
|
||||
PBXFileTableDataSourceColumnSortingDirectionKey = "-1";
|
||||
PBXFileTableDataSourceColumnSortingKey = PBXFileDataSource_Filename_ColumnID;
|
||||
PBXFileTableDataSourceColumnWidthsKey = (
|
||||
20,
|
||||
341,
|
||||
20,
|
||||
48,
|
||||
43,
|
||||
43,
|
||||
20,
|
||||
);
|
||||
PBXFileTableDataSourceColumnsKey = (
|
||||
PBXFileDataSource_FiletypeID,
|
||||
PBXFileDataSource_Filename_ColumnID,
|
||||
PBXFileDataSource_Built_ColumnID,
|
||||
PBXFileDataSource_ObjectSize_ColumnID,
|
||||
PBXFileDataSource_Errors_ColumnID,
|
||||
PBXFileDataSource_Warnings_ColumnID,
|
||||
PBXFileDataSource_Target_ColumnID,
|
||||
);
|
||||
};
|
||||
PBXPerProjectTemplateStateSaveDate = 287943446;
|
||||
PBXWorkspaceStateSaveDate = 287943446;
|
||||
};
|
||||
perUserProjectItems = {
|
||||
CE244DDA10E963A000FF3178 /* PBXTextBookmark */ = CE244DDA10E963A000FF3178 /* PBXTextBookmark */;
|
||||
CE417BDF10E960A7002374BB /* PBXBookmark */ = CE417BDF10E960A7002374BB /* PBXBookmark */;
|
||||
CE6EB7691129AC3300A4FF2B /* PBXTextBookmark */ = CE6EB7691129AC3300A4FF2B /* PBXTextBookmark */;
|
||||
CE6EB7851129AC9D00A4FF2B /* PBXTextBookmark */ = CE6EB7851129AC9D00A4FF2B /* PBXTextBookmark */;
|
||||
};
|
||||
sourceControlManager = CEAC718310E9228600087CCD /* Source Control */;
|
||||
userBuildSettings = {
|
||||
};
|
||||
};
|
||||
CE244DDA10E963A000FF3178 /* PBXTextBookmark */ = {
|
||||
isa = PBXTextBookmark;
|
||||
fRef = CE417BD310E96042002374BB /* Reachability.h */;
|
||||
name = "Reachability.h: 6";
|
||||
rLen = 0;
|
||||
rLoc = 131;
|
||||
rType = 0;
|
||||
vrLen = 490;
|
||||
vrLoc = 0;
|
||||
};
|
||||
CE417BD310E96042002374BB /* Reachability.h */ = {
|
||||
uiCtxt = {
|
||||
sepNavIntBoundsRect = "{{0, 0}, {614, 3000}}";
|
||||
sepNavSelRange = "{131, 0}";
|
||||
sepNavVisRange = "{27, 463}";
|
||||
sepNavWindowFrame = "{{15, 0}, {898, 1177}}";
|
||||
};
|
||||
};
|
||||
CE417BD410E96042002374BB /* Reachability.m */ = {
|
||||
uiCtxt = {
|
||||
sepNavIntBoundsRect = "{{0, 0}, {1013, 11085}}";
|
||||
sepNavSelRange = "{16378, 0}";
|
||||
sepNavVisRange = "{0, 3271}";
|
||||
sepNavWindowFrame = "{{779, 1}, {898, 1177}}";
|
||||
};
|
||||
};
|
||||
CE417BDF10E960A7002374BB /* PBXBookmark */ = {
|
||||
isa = PBXBookmark;
|
||||
fRef = CEAC71AF10E9255500087CCD /* Airport.png */;
|
||||
};
|
||||
CE6EB7691129AC3300A4FF2B /* PBXTextBookmark */ = {
|
||||
isa = PBXTextBookmark;
|
||||
fRef = CE417BD410E96042002374BB /* Reachability.m */;
|
||||
name = "Reachability.m: 1";
|
||||
rLen = 0;
|
||||
rLoc = 0;
|
||||
rType = 0;
|
||||
vrLen = 356;
|
||||
vrLoc = 0;
|
||||
};
|
||||
CE6EB7851129AC9D00A4FF2B /* PBXTextBookmark */ = {
|
||||
isa = PBXTextBookmark;
|
||||
fRef = CE417BD310E96042002374BB /* Reachability.h */;
|
||||
name = "Reachability.h: 6";
|
||||
rLen = 0;
|
||||
rLoc = 131;
|
||||
rType = 0;
|
||||
vrLen = 463;
|
||||
vrLoc = 27;
|
||||
};
|
||||
CEAC717A10E9227C00087CCD /* Reachability */ = {
|
||||
isa = PBXExecutable;
|
||||
activeArgIndices = (
|
||||
);
|
||||
argumentStrings = (
|
||||
);
|
||||
autoAttachOnCrash = 1;
|
||||
breakpointsEnabled = 1;
|
||||
configStateDict = {
|
||||
};
|
||||
customDataFormattersEnabled = 1;
|
||||
dataTipCustomDataFormattersEnabled = 1;
|
||||
dataTipShowTypeColumn = 1;
|
||||
dataTipSortType = 0;
|
||||
debuggerPlugin = GDBDebugging;
|
||||
disassemblyDisplayState = 0;
|
||||
dylibVariantSuffix = "";
|
||||
enableDebugStr = 1;
|
||||
environmentEntries = (
|
||||
);
|
||||
executableSystemSymbolLevel = 0;
|
||||
executableUserSymbolLevel = 0;
|
||||
libgmallocEnabled = 0;
|
||||
name = Reachability;
|
||||
savedGlobals = {
|
||||
};
|
||||
showTypeColumn = 0;
|
||||
sourceDirectories = (
|
||||
);
|
||||
variableFormatDictionary = {
|
||||
"flags-SCNetworkReachabilityFlags--[Reachability networkStatusForFlags:]" = 1;
|
||||
};
|
||||
};
|
||||
CEAC718310E9228600087CCD /* Source Control */ = {
|
||||
isa = PBXSourceControlManager;
|
||||
fallbackIsa = XCSourceControlManager;
|
||||
isSCMEnabled = 0;
|
||||
scmConfiguration = {
|
||||
repositoryNamesForRoots = {
|
||||
"" = "";
|
||||
};
|
||||
};
|
||||
};
|
||||
CEAC718410E9228600087CCD /* Code sense */ = {
|
||||
isa = PBXCodeSenseManager;
|
||||
indexTemplatePath = "";
|
||||
};
|
||||
CEAC722610E92B0F00087CCD /* Reachability.m:426 */ = {
|
||||
isa = PBXFileBreakpoint;
|
||||
actions = (
|
||||
);
|
||||
breakpointStyle = 0;
|
||||
continueAfterActions = 0;
|
||||
countType = 0;
|
||||
delayBeforeContinue = 0;
|
||||
fileReference = CE417BD410E96042002374BB /* Reachability.m */;
|
||||
functionName = "-networkStatusForFlags:";
|
||||
hitCount = 0;
|
||||
ignoreCount = 0;
|
||||
lineNumber = 426;
|
||||
location = Reachability;
|
||||
modificationTime = 287943736.833593;
|
||||
originalNumberOfMultipleMatches = 1;
|
||||
state = 2;
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,292 @@
|
||||
// !$*UTF8*$!
|
||||
{
|
||||
archiveVersion = 1;
|
||||
classes = {
|
||||
};
|
||||
objectVersion = 45;
|
||||
objects = {
|
||||
|
||||
/* Begin PBXBuildFile section */
|
||||
1D3623260D0F684500981E51 /* ReachabilityAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 1D3623250D0F684500981E51 /* ReachabilityAppDelegate.m */; };
|
||||
1D60589B0D05DD56006BFB54 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 29B97316FDCFA39411CA2CEA /* main.m */; };
|
||||
1D60589F0D05DD5A006BFB54 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1D30AB110D05D00D00671497 /* Foundation.framework */; };
|
||||
1DF5F4E00D08C38300B7A737 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1DF5F4DF0D08C38300B7A737 /* UIKit.framework */; };
|
||||
288765FD0DF74451002DB57D /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 288765FC0DF74451002DB57D /* CoreGraphics.framework */; };
|
||||
28AD733F0D9D9553002E5188 /* MainWindow.xib in Resources */ = {isa = PBXBuildFile; fileRef = 28AD733E0D9D9553002E5188 /* MainWindow.xib */; };
|
||||
CE417BD510E96042002374BB /* Reachability.m in Sources */ = {isa = PBXBuildFile; fileRef = CE417BD410E96042002374BB /* Reachability.m */; };
|
||||
CEAC718B10E9231400087CCD /* Default.png in Resources */ = {isa = PBXBuildFile; fileRef = CEAC718510E9231400087CCD /* Default.png */; };
|
||||
CEAC718C10E9231400087CCD /* icon.png in Resources */ = {isa = PBXBuildFile; fileRef = CEAC718610E9231400087CCD /* icon.png */; };
|
||||
CEAC718D10E9231400087CCD /* Network.png in Resources */ = {isa = PBXBuildFile; fileRef = CEAC718710E9231400087CCD /* Network.png */; };
|
||||
CEAC718E10E9231400087CCD /* red.png in Resources */ = {isa = PBXBuildFile; fileRef = CEAC718810E9231400087CCD /* red.png */; };
|
||||
CEAC718F10E9231400087CCD /* stop-32.png in Resources */ = {isa = PBXBuildFile; fileRef = CEAC718910E9231400087CCD /* stop-32.png */; };
|
||||
CEAC719010E9231400087CCD /* WWAN5.png in Resources */ = {isa = PBXBuildFile; fileRef = CEAC718A10E9231400087CCD /* WWAN5.png */; };
|
||||
CEAC719A10E9237400087CCD /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CEAC719910E9237400087CCD /* SystemConfiguration.framework */; };
|
||||
CEAC71B010E9255500087CCD /* Airport.png in Resources */ = {isa = PBXBuildFile; fileRef = CEAC71AF10E9255500087CCD /* Airport.png */; };
|
||||
/* End PBXBuildFile section */
|
||||
|
||||
/* Begin PBXFileReference section */
|
||||
1D30AB110D05D00D00671497 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
|
||||
1D3623240D0F684500981E51 /* ReachabilityAppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ReachabilityAppDelegate.h; sourceTree = "<group>"; };
|
||||
1D3623250D0F684500981E51 /* ReachabilityAppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ReachabilityAppDelegate.m; sourceTree = "<group>"; };
|
||||
1D6058910D05DD3D006BFB54 /* Reachability.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Reachability.app; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
1DF5F4DF0D08C38300B7A737 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
|
||||
288765FC0DF74451002DB57D /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };
|
||||
28AD733E0D9D9553002E5188 /* MainWindow.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = MainWindow.xib; sourceTree = "<group>"; };
|
||||
29B97316FDCFA39411CA2CEA /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
|
||||
32CA4F630368D1EE00C91783 /* Reachability_Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Reachability_Prefix.pch; sourceTree = "<group>"; };
|
||||
8D1107310486CEB800E47090 /* Reachability-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "Reachability-Info.plist"; plistStructureDefinitionIdentifier = "com.apple.xcode.plist.structure-definition.iphone.info-plist"; sourceTree = "<group>"; };
|
||||
CE417BD310E96042002374BB /* Reachability.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Reachability.h; sourceTree = "<group>"; };
|
||||
CE417BD410E96042002374BB /* Reachability.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = Reachability.m; sourceTree = "<group>"; };
|
||||
CEAC718510E9231400087CCD /* Default.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Default.png; sourceTree = "<group>"; };
|
||||
CEAC718610E9231400087CCD /* icon.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = icon.png; sourceTree = "<group>"; };
|
||||
CEAC718710E9231400087CCD /* Network.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Network.png; sourceTree = "<group>"; };
|
||||
CEAC718810E9231400087CCD /* red.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = red.png; sourceTree = "<group>"; };
|
||||
CEAC718910E9231400087CCD /* stop-32.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "stop-32.png"; sourceTree = "<group>"; };
|
||||
CEAC718A10E9231400087CCD /* WWAN5.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = WWAN5.png; sourceTree = "<group>"; };
|
||||
CEAC719910E9237400087CCD /* SystemConfiguration.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SystemConfiguration.framework; path = System/Library/Frameworks/SystemConfiguration.framework; sourceTree = SDKROOT; };
|
||||
CEAC71AF10E9255500087CCD /* Airport.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Airport.png; sourceTree = "<group>"; };
|
||||
/* End PBXFileReference section */
|
||||
|
||||
/* Begin PBXFrameworksBuildPhase section */
|
||||
1D60588F0D05DD3D006BFB54 /* Frameworks */ = {
|
||||
isa = PBXFrameworksBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
1D60589F0D05DD5A006BFB54 /* Foundation.framework in Frameworks */,
|
||||
1DF5F4E00D08C38300B7A737 /* UIKit.framework in Frameworks */,
|
||||
288765FD0DF74451002DB57D /* CoreGraphics.framework in Frameworks */,
|
||||
CEAC719A10E9237400087CCD /* SystemConfiguration.framework in Frameworks */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXFrameworksBuildPhase section */
|
||||
|
||||
/* Begin PBXGroup section */
|
||||
080E96DDFE201D6D7F000001 /* Classes */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
CE417BD210E96042002374BB /* Reachability */,
|
||||
1D3623240D0F684500981E51 /* ReachabilityAppDelegate.h */,
|
||||
1D3623250D0F684500981E51 /* ReachabilityAppDelegate.m */,
|
||||
);
|
||||
path = Classes;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
19C28FACFE9D520D11CA2CBB /* Products */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
1D6058910D05DD3D006BFB54 /* Reachability.app */,
|
||||
);
|
||||
name = Products;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
29B97314FDCFA39411CA2CEA /* CustomTemplate */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
080E96DDFE201D6D7F000001 /* Classes */,
|
||||
29B97315FDCFA39411CA2CEA /* Other Sources */,
|
||||
29B97317FDCFA39411CA2CEA /* Resources */,
|
||||
29B97323FDCFA39411CA2CEA /* Frameworks */,
|
||||
19C28FACFE9D520D11CA2CBB /* Products */,
|
||||
);
|
||||
name = CustomTemplate;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
29B97315FDCFA39411CA2CEA /* Other Sources */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
32CA4F630368D1EE00C91783 /* Reachability_Prefix.pch */,
|
||||
29B97316FDCFA39411CA2CEA /* main.m */,
|
||||
);
|
||||
name = "Other Sources";
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
29B97317FDCFA39411CA2CEA /* Resources */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
CEAC71AF10E9255500087CCD /* Airport.png */,
|
||||
CEAC718510E9231400087CCD /* Default.png */,
|
||||
CEAC718610E9231400087CCD /* icon.png */,
|
||||
CEAC718710E9231400087CCD /* Network.png */,
|
||||
CEAC718810E9231400087CCD /* red.png */,
|
||||
CEAC718910E9231400087CCD /* stop-32.png */,
|
||||
CEAC718A10E9231400087CCD /* WWAN5.png */,
|
||||
28AD733E0D9D9553002E5188 /* MainWindow.xib */,
|
||||
8D1107310486CEB800E47090 /* Reachability-Info.plist */,
|
||||
);
|
||||
name = Resources;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
29B97323FDCFA39411CA2CEA /* Frameworks */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
1DF5F4DF0D08C38300B7A737 /* UIKit.framework */,
|
||||
1D30AB110D05D00D00671497 /* Foundation.framework */,
|
||||
288765FC0DF74451002DB57D /* CoreGraphics.framework */,
|
||||
CEAC719910E9237400087CCD /* SystemConfiguration.framework */,
|
||||
);
|
||||
name = Frameworks;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
CE417BD210E96042002374BB /* Reachability */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
CE417BD310E96042002374BB /* Reachability.h */,
|
||||
CE417BD410E96042002374BB /* Reachability.m */,
|
||||
);
|
||||
name = Reachability;
|
||||
path = ../Reachability;
|
||||
sourceTree = SOURCE_ROOT;
|
||||
};
|
||||
/* End PBXGroup section */
|
||||
|
||||
/* Begin PBXNativeTarget section */
|
||||
1D6058900D05DD3D006BFB54 /* Reachability */ = {
|
||||
isa = PBXNativeTarget;
|
||||
buildConfigurationList = 1D6058960D05DD3E006BFB54 /* Build configuration list for PBXNativeTarget "Reachability" */;
|
||||
buildPhases = (
|
||||
1D60588D0D05DD3D006BFB54 /* Resources */,
|
||||
1D60588E0D05DD3D006BFB54 /* Sources */,
|
||||
1D60588F0D05DD3D006BFB54 /* Frameworks */,
|
||||
);
|
||||
buildRules = (
|
||||
);
|
||||
dependencies = (
|
||||
);
|
||||
name = Reachability;
|
||||
productName = Reachability;
|
||||
productReference = 1D6058910D05DD3D006BFB54 /* Reachability.app */;
|
||||
productType = "com.apple.product-type.application";
|
||||
};
|
||||
/* End PBXNativeTarget section */
|
||||
|
||||
/* Begin PBXProject section */
|
||||
29B97313FDCFA39411CA2CEA /* Project object */ = {
|
||||
isa = PBXProject;
|
||||
buildConfigurationList = C01FCF4E08A954540054247B /* Build configuration list for PBXProject "Reachability" */;
|
||||
compatibilityVersion = "Xcode 3.1";
|
||||
hasScannedForEncodings = 1;
|
||||
mainGroup = 29B97314FDCFA39411CA2CEA /* CustomTemplate */;
|
||||
projectDirPath = "";
|
||||
projectRoot = "";
|
||||
targets = (
|
||||
1D6058900D05DD3D006BFB54 /* Reachability */,
|
||||
);
|
||||
};
|
||||
/* End PBXProject section */
|
||||
|
||||
/* Begin PBXResourcesBuildPhase section */
|
||||
1D60588D0D05DD3D006BFB54 /* Resources */ = {
|
||||
isa = PBXResourcesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
28AD733F0D9D9553002E5188 /* MainWindow.xib in Resources */,
|
||||
CEAC718B10E9231400087CCD /* Default.png in Resources */,
|
||||
CEAC718C10E9231400087CCD /* icon.png in Resources */,
|
||||
CEAC718D10E9231400087CCD /* Network.png in Resources */,
|
||||
CEAC718E10E9231400087CCD /* red.png in Resources */,
|
||||
CEAC718F10E9231400087CCD /* stop-32.png in Resources */,
|
||||
CEAC719010E9231400087CCD /* WWAN5.png in Resources */,
|
||||
CEAC71B010E9255500087CCD /* Airport.png in Resources */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXResourcesBuildPhase section */
|
||||
|
||||
/* Begin PBXSourcesBuildPhase section */
|
||||
1D60588E0D05DD3D006BFB54 /* Sources */ = {
|
||||
isa = PBXSourcesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
1D60589B0D05DD56006BFB54 /* main.m in Sources */,
|
||||
1D3623260D0F684500981E51 /* ReachabilityAppDelegate.m in Sources */,
|
||||
CE417BD510E96042002374BB /* Reachability.m in Sources */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXSourcesBuildPhase section */
|
||||
|
||||
/* Begin XCBuildConfiguration section */
|
||||
1D6058940D05DD3E006BFB54 /* Debug */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ALWAYS_SEARCH_USER_PATHS = NO;
|
||||
COPY_PHASE_STRIP = NO;
|
||||
GCC_DYNAMIC_NO_PIC = NO;
|
||||
GCC_OPTIMIZATION_LEVEL = 0;
|
||||
GCC_PRECOMPILE_PREFIX_HEADER = YES;
|
||||
GCC_PREFIX_HEADER = Reachability_Prefix.pch;
|
||||
INFOPLIST_FILE = "Reachability-Info.plist";
|
||||
PRODUCT_NAME = Reachability;
|
||||
};
|
||||
name = Debug;
|
||||
};
|
||||
1D6058950D05DD3E006BFB54 /* Release */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ALWAYS_SEARCH_USER_PATHS = NO;
|
||||
COPY_PHASE_STRIP = YES;
|
||||
GCC_PRECOMPILE_PREFIX_HEADER = YES;
|
||||
GCC_PREFIX_HEADER = Reachability_Prefix.pch;
|
||||
INFOPLIST_FILE = "Reachability-Info.plist";
|
||||
PRODUCT_NAME = Reachability;
|
||||
};
|
||||
name = Release;
|
||||
};
|
||||
C01FCF4F08A954540054247B /* Debug */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ARCHS = "$(ARCHS_STANDARD_32_BIT)";
|
||||
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
|
||||
GCC_C_LANGUAGE_STANDARD = c99;
|
||||
GCC_PREPROCESSOR_DEFINITIONS = "DEBUG=1";
|
||||
GCC_WARN_ABOUT_RETURN_TYPE = YES;
|
||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 3.0;
|
||||
PREBINDING = NO;
|
||||
"PROVISIONING_PROFILE[sdk=iphoneos*]" = "";
|
||||
SDKROOT = iphoneos3.1.2;
|
||||
};
|
||||
name = Debug;
|
||||
};
|
||||
C01FCF5008A954540054247B /* Release */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ARCHS = "$(ARCHS_STANDARD_32_BIT)";
|
||||
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
|
||||
GCC_C_LANGUAGE_STANDARD = c99;
|
||||
GCC_PREPROCESSOR_DEFINITIONS = "NS_BLOCK_ASSERTIONS=1";
|
||||
GCC_WARN_ABOUT_RETURN_TYPE = YES;
|
||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 3.0;
|
||||
PREBINDING = NO;
|
||||
"PROVISIONING_PROFILE[sdk=iphoneos*]" = "";
|
||||
SDKROOT = iphoneos3.1.2;
|
||||
};
|
||||
name = Release;
|
||||
};
|
||||
/* End XCBuildConfiguration section */
|
||||
|
||||
/* Begin XCConfigurationList section */
|
||||
1D6058960D05DD3E006BFB54 /* Build configuration list for PBXNativeTarget "Reachability" */ = {
|
||||
isa = XCConfigurationList;
|
||||
buildConfigurations = (
|
||||
1D6058940D05DD3E006BFB54 /* Debug */,
|
||||
1D6058950D05DD3E006BFB54 /* Release */,
|
||||
);
|
||||
defaultConfigurationIsVisible = 0;
|
||||
defaultConfigurationName = Release;
|
||||
};
|
||||
C01FCF4E08A954540054247B /* Build configuration list for PBXProject "Reachability" */ = {
|
||||
isa = XCConfigurationList;
|
||||
buildConfigurations = (
|
||||
C01FCF4F08A954540054247B /* Debug */,
|
||||
C01FCF5008A954540054247B /* Release */,
|
||||
);
|
||||
defaultConfigurationIsVisible = 0;
|
||||
defaultConfigurationName = Release;
|
||||
};
|
||||
/* End XCConfigurationList section */
|
||||
};
|
||||
rootObject = 29B97313FDCFA39411CA2CEA /* Project object */;
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
//
|
||||
// Prefix header for all source files of the 'Reachability' target in the 'Reachability' project
|
||||
//
|
||||
|
||||
#ifdef __OBJC__
|
||||
#import <Foundation/Foundation.h>
|
||||
#import <UIKit/UIKit.h>
|
||||
#endif
|
||||
@@ -0,0 +1,89 @@
|
||||
Reachability
|
||||
|
||||
========================================================================
|
||||
DESCRIPTION:
|
||||
|
||||
The Reachability sample application demonstrates how to use the System
|
||||
Configuration framework to monitor the network state of an iPhone or
|
||||
iPod touch. In particular, it demonstrates how to know when IP can be
|
||||
routed and when traffic will be routed through a Wireless Wide Area
|
||||
Network (WWAN) interface such as EDGE or 3G.
|
||||
|
||||
Note: Reachability cannot tell your application if you can connect to a
|
||||
particular host, only that an interface is available that might allow a
|
||||
connection, and whether that interface is the WWAN.
|
||||
|
||||
========================================================================
|
||||
USING THE SAMPLE
|
||||
|
||||
Build and run the sample using Xcode. When running the iPhone Simulator,
|
||||
you can exercise the application by disconnecting the Ethernet cable,
|
||||
turning off AirPort, or by joining an ad-hoc local Wi-Fi network.
|
||||
|
||||
By default, the application uses www.apple.com for its remote host. You
|
||||
can change the host it uses in ReachabilityAppDelegate.m by modifying
|
||||
the call to [Reachability reachabilityWithHostName] in
|
||||
-applicationDidFinishLaunching.
|
||||
|
||||
IMPORTANT: Reachability must use DNS to resolve the host name before it
|
||||
can determine the Reachability of that host, and this may take time on
|
||||
certain network connections. Because of this, the API will return
|
||||
NotReachable until name resolution has completed. This delay may be
|
||||
visible in the interface on some networks.
|
||||
|
||||
The Reachability sample demonstrates the asynchronous use of the
|
||||
SCNetworkReachability API. You can use the API synchronously, but do not
|
||||
issue a synchronous check by hostName on the main thread. If the device
|
||||
cannot reach a DNS server or is on a slow network, a synchronous call to
|
||||
the SCNetworkReachabilityGetFlags function can block for up to 30
|
||||
seconds trying to resolve the hostName. If this happens on the main
|
||||
thread, the application watchdog will kill the application after 20
|
||||
seconds of inactivity.
|
||||
|
||||
SCNetworkReachability API's do not currently provide a means to detect
|
||||
support for GameKit Peer To Peer networking over BlueTooth.
|
||||
|
||||
========================================================================
|
||||
BUILD REQUIREMENTS
|
||||
|
||||
iPhone OS 3.0
|
||||
|
||||
========================================================================
|
||||
RUNTIME REQUIREMENTS
|
||||
|
||||
iPhone OS 3.0
|
||||
|
||||
========================================================================
|
||||
PACKAGING LIST
|
||||
|
||||
Reachability.h Reachability.m -Basic demonstration of how to use the
|
||||
SystemConfiguration Reachablity APIs.
|
||||
|
||||
ReachabilityAppDelegate.h ReachabilityAppDelegate.m -The application's
|
||||
controller.
|
||||
|
||||
========================================================================
|
||||
CHANGES FROM PREVIOUS VERSIONS
|
||||
|
||||
Version 2.0
|
||||
-Greatly simplified UI code.
|
||||
-Rewrote Reachability object to be fully asychronous and simplify
|
||||
monitoring of multiple SCNetworkReachabilityRefs.
|
||||
-Added code showing how to monitor wether a connection will be required.
|
||||
|
||||
Version 1.5
|
||||
- Updated for and tested with iPhone OS 2.0. First public release.
|
||||
|
||||
Version 1.4
|
||||
- Updated for Beta 7.
|
||||
|
||||
Version 1.3
|
||||
- Updated for Beta 6. - Added LSRequiresIPhoneOS key to Info.plist.
|
||||
|
||||
Version 1.2
|
||||
- Updated for Beta 4. Added code signing.
|
||||
|
||||
Version 1.1
|
||||
- Updated for Beta 3 to use a nib file.
|
||||
|
||||
Copyright (C)2009 Apple Inc. All rights reserved.
|
||||
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 5.8 KiB |
@@ -0,0 +1,17 @@
|
||||
//
|
||||
// main.m
|
||||
// Reachability
|
||||
//
|
||||
// Created by Andrew Donoho on 2009/12/28.
|
||||
// Copyright Donoho Design Group, L.L.C. 2009. All rights reserved.
|
||||
//
|
||||
|
||||
#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;
|
||||
}
|
||||
|
After Width: | Height: | Size: 503 B |
|
After Width: | Height: | Size: 1.4 KiB |