iphone66
iphone66

Reputation: 144

Notification for internet connection in Mac OS X cocoa application

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

Answers (1)

Rob Napier
Rob Napier

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

Related Questions