Replacing (CFStringRef)NSRunLoopCommonModes with kCFRunLoopCommonModes

This commit is contained in:
Mattt Thompson 2013-05-08 10:27:25 -07:00
parent 8916a10dc4
commit 8fd6eefb2a

View file

@ -379,12 +379,12 @@ static void AFNetworkReachabilityReleaseCallback(const void *info) {
});
}
SCNetworkReachabilityScheduleWithRunLoop(self.networkReachability, CFRunLoopGetMain(), (CFStringRef)NSRunLoopCommonModes);
SCNetworkReachabilityScheduleWithRunLoop(self.networkReachability, CFRunLoopGetMain(), kCFRunLoopCommonModes);
}
- (void)stopMonitoringNetworkReachability {
if (self.networkReachability) {
SCNetworkReachabilityUnscheduleFromRunLoop(self.networkReachability, CFRunLoopGetMain(), (CFStringRef)NSRunLoopCommonModes);
SCNetworkReachabilityUnscheduleFromRunLoop(self.networkReachability, CFRunLoopGetMain(), kCFRunLoopCommonModes);
CFRelease(_networkReachability);
_networkReachability = NULL;