tonymillion/Reachability — pull request #57 by woahdae (2014-01-01 02:03:23+00:00)
Title: Allow subclasses to manipulate reachabilityFlags

Previously, many methods made a direct call to `SCNetworkReachabilityGetFlags(reachabilityRef, &flags)` to get the flags. Since we already have a method that does this, we can "program to an interface" and have all flag queries go through `-reachabilityFlags` to gain readability (IMO) and more importantly the ability of subclasses overriding `-reachabilityFlags` for automated testing purposes.

Note that I did this in the github file editor to see if there's any interest. If you like the general idea, let me know and I'll do more extensive testing.

If you *really* like the idea, it would be extra-cool to have Reachability have flag manipulation built into reachability instances, or perhaps provide an official category extension to enable it.

Is my use case clear?