Re: How to get AirPort Connection Status
Re: How to get AirPort Connection Status
- Subject: Re: How to get AirPort Connection Status
- From: "Michael Ash" <email@hidden>
- Date: Thu, 18 Sep 2008 11:21:05 -0400
On Thu, Sep 18, 2008 at 12:50 AM, Rashmi Vyshnavi
<email@hidden> 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 (email@hidden)
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:
This email sent to email@hidden