Permalink
Browse files

Solved warnings when compiling for MonoTouch 6.0

  • Loading branch information...
chebum committed Sep 20, 2012
1 parent 1d20a3f commit b94379411beeb94a136b45789099708516a94abd
Showing with 3 additions and 3 deletions.
  1. +3 −3 Reachability.cs
View
@@ -71,7 +71,7 @@ public static bool IsAdHocWiFiNetworkAvailable (out NetworkReachabilityFlags fla
{
if (adHocWiFiNetworkReachability == null) {
adHocWiFiNetworkReachability = new NetworkReachability (new IPAddress (new byte [] {169,254,0,0}));
- adHocWiFiNetworkReachability.SetCallback (OnChange);
+ adHocWiFiNetworkReachability.SetNotification (OnChange);
adHocWiFiNetworkReachability.Schedule (CFRunLoop.Current, CFRunLoop.ModeDefault);
}
@@ -87,7 +87,7 @@ static bool IsNetworkAvaialable (out NetworkReachabilityFlags flags)
{
if (defaultRouteReachability == null) {
defaultRouteReachability = new NetworkReachability (new IPAddress (0));
- defaultRouteReachability.SetCallback (OnChange);
+ defaultRouteReachability.SetNotification (OnChange);
defaultRouteReachability.Schedule (CFRunLoop.Current, CFRunLoop.ModeDefault);
}
if (defaultRouteReachability.TryGetFlags (out flags))
@@ -109,7 +109,7 @@ public static NetworkStatus RemoteHostStatus ()
// this only happens when you create NetworkReachability from a hostname
reachable = remoteHostReachability.TryGetFlags (out flags);
- remoteHostReachability.SetCallback (OnChange);
+ remoteHostReachability.SetNotification (OnChange);
remoteHostReachability.Schedule (CFRunLoop.Current, CFRunLoop.ModeDefault);
} else
reachable = remoteHostReachability.TryGetFlags (out flags);

0 comments on commit b943794

Please sign in to comment.