Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also .

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also .
Choose a Base Repository
Choose a base branch
Nothing to show
...
Choose a Head Repository
Choose a head branch
Nothing to show
  • 2 commits
  • 13 files changed
  • 0 commit comments
  • 1 contributor
Commits on Mar 05, 2013
Commits on Mar 06, 2013

Large diffs are not rendered by default.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -25,9 +25,9 @@
<key>LSRequiresIPhoneOS</key>
<true/>
<key>UIMainStoryboardFile</key>
- <string>MainStoryboard_iPhone</string>
+ <string>iPhone</string>
<key>UIMainStoryboardFile~ipad</key>
- <string>Test_iPad</string>
+ <string>iPad</string>
<key>UIRequiredDeviceCapabilities</key>
<array>
<string>armv7</string>
@@ -1,13 +0,0 @@
-//
-// NSData+LogURLDownload.h
-// FlickrExplorer
-//
-// Created by admin on 25/J/13.
-// Copyright (c) 2013 ThoughtAdvances. All rights reserved.
-//
-
-#import <Foundation/Foundation.h>
-
-@interface NSData (LogURLDownload)
-+ (id)LogDataWithContentsOfURL:(NSURL *)aURL;
-@end
@@ -1,31 +0,0 @@
-//
-// NSData+LogURLDownload.m
-// FlickrExplorer
-//
-// Created by admin on 25/J/13.
-// Copyright (c) 2013 ThoughtAdvances. All rights reserved.
-//
-
-#import "NSData+LogURLDownload.h"
-#import <Foundation/NSObjCRuntime.h>
-#import <objc/runtime.h>
-#import </usr/include/objc/objc-class.h>
-
-@implementation NSData (LogURLDownload)
-
-// TODO: Create a method that takes two selectors and swizzles them
-+ (void)load {
- Method dataWithContentsOfURL =
- class_getClassMethod(self, @selector(dataWithContentsOfURL:));
- Method logDataWithContentsOfURL =
- class_getClassMethod(self, @selector(logDataWithContentsOfURL:));
- method_exchangeImplementations(dataWithContentsOfURL,
- logDataWithContentsOfURL);
-
-}
-
-+ (id)LogDataWithContentsOfURL:(NSURL *)aURL {
- NSLog(@"[NSData dataWithContentsOfURL:] called");
- return [self LogDataWithContentsOfURL:aURL];
-}
-@end
@@ -1,102 +0,0 @@
-/*
- Copyright (c) 2011, Tony Million.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without
- modification, are permitted provided that the following conditions are met:
-
- 1. Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
-
- 2. 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.
-
- 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 THE COPYRIGHT HOLDER OR CONTRIBUTORS 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 <Foundation/Foundation.h>
-#import <SystemConfiguration/SystemConfiguration.h>
-
-#import <sys/socket.h>
-#import <netinet/in.h>
-#import <netinet6/in6.h>
-#import <arpa/inet.h>
-#import <ifaddrs.h>
-#import <netdb.h>
-
-/**
- * Does ARC support support GCD objects?
- * It does if the minimum deployment target is iOS 6+ or Mac OS X 8+
- *
- * @see http://opensource.apple.com/source/libdispatch/libdispatch-228.18/os/object.h
- **/
-#if OS_OBJECT_USE_OBJC
-#define NEEDS_DISPATCH_RETAIN_RELEASE 0
-#else
-#define NEEDS_DISPATCH_RETAIN_RELEASE 1
-#endif
-
-
-extern NSString *const kReachabilityChangedNotification;
-
-typedef enum
-{
- // Apple NetworkStatus Compatible Names.
- NotReachable = 0,
- ReachableViaWiFi = 2,
- ReachableViaWWAN = 1
-} NetworkStatus;
-
-@class Reachability;
-
-typedef void (^NetworkReachable)(Reachability * reachability);
-typedef void (^NetworkUnreachable)(Reachability * reachability);
-
-@interface Reachability : NSObject
-
-@property (nonatomic, copy) NetworkReachable reachableBlock;
-@property (nonatomic, copy) NetworkUnreachable unreachableBlock;
-
-
-@property (nonatomic, assign) BOOL reachableOnWWAN;
-
-+(Reachability*)reachabilityWithHostname:(NSString*)hostname;
-+(Reachability*)reachabilityForInternetConnection;
-+(Reachability*)reachabilityWithAddress:(const struct sockaddr_in*)hostAddress;
-+(Reachability*)reachabilityForLocalWiFi;
-
--(Reachability *)initWithReachabilityRef:(SCNetworkReachabilityRef)ref;
-
--(BOOL)startNotifier;
--(void)stopNotifier;
-
--(BOOL)isReachable;
--(BOOL)isReachableViaWWAN;
--(BOOL)isReachableViaWiFi;
-
-// WWAN may be available, but not active until a connection has been established.
-// WiFi may require a connection for VPN on Demand.
--(BOOL)isConnectionRequired; // Identical DDG variant.
--(BOOL)connectionRequired; // Apple's routine.
-// Dynamic, on demand connection?
--(BOOL)isConnectionOnDemand;
-// Is user intervention required?
--(BOOL)isInterventionRequired;
-
--(NetworkStatus)currentReachabilityStatus;
--(SCNetworkReachabilityFlags)reachabilityFlags;
--(NSString*)currentReachabilityString;
--(NSString*)currentReachabilityFlags;
-
-@end
Oops, something went wrong.

No commit comments for this range