On Thu, Sep 18, 2008 at 12:50 AM, Rashmi Vyshnavi <[EMAIL PROTECTED]> wrote: > I want to know when my computer connects/disconnects to WiFi/AirPort > network. > Is there a way to get the status of connection to a WiFi network. I tried > using System Configuration API,but I could not get the status. Here is the > snippet
I am not greatly familiar with them, but it looks like you could use the SC Reachability API to get notified of when a host becomes reachable or unreachable. If wifi is your only internet connection then any remote host will become unreachable when you disconnect, and reachable when you connect. Mike _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]