Reputation: 144
In my app I want to notify the user for any internet notifications such as switching from ethernet to wifi or no reachability in System it has to automatically notify my app. I know how to do in iphone app using reachability example but the same doesnt work for Mac OS X Cocoa app. How to implement this using Objective-C in my cocoa app?
Upvotes: 2
Views: 1351
Reputation: 299275
Reachability exists on Mac just like iOS. Some of the flags are a little different, but the basic approach is the same. See SimpleReach.
Upvotes: 1