• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Detecting AirPort Power Enabled
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Detecting AirPort Power Enabled


  • Subject: Re: Detecting AirPort Power Enabled
  • From: Quinn <email@hidden>
  • Date: Thu, 1 Oct 2009 09:52:26 +0100

At 06:57 -0400 30/9/09, Bill Cheeseman wrote:
I've written a Cocoa method using the System Configuration framework to detect whether the AirPort card is powered on.

Taking a step back for a minute, have you thought about doing this with CoreWLAN rather than System Configuration. CoreWLAN has a specific method, -[CWInterface power], to check whether the interface is powered up. You can also register for a notification, kCWPowerDidChangeNotification, that's sent when the state changes.


S+E
--
Quinn "The Eskimo!"                    <http://www.apple.com/developer/>
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Detecting AirPort Power Enabled
      • From: Bill Cheeseman <email@hidden>
  • Next by Date: Re: kCFErrorDomainCFNetwork == NSURLErrorDomain ; // But headers say otherwise
  • Next by thread: Re: Detecting AirPort Power Enabled
  • Index(es):
    • Date
    • Thread