Not sure what list to send this to....

I've written a Cocoa method using the System Configuration framework to detect whether the AirPort card is powered on. I first test for a network interface of type kSCNetworkInterfaceTypeIEEE80211 (AirPort). Then, if one is present, I get its configuration dictionary and extract the value associated with its "PowerEnabled" key. A user is reporting that this returns nil. I thought it was illegal for a kSCNetworkInterfaceTypeIEEE80211 interface to have a configuration dictionary that does NOT contain the "PowerEnabled" key, so i didn't test for nil.

Can a kSCNetworkInterfaceTypeIEEE80211 interface configuration dictionary lawfully omit a "PowerEnabled" key? Under what circumstances? Can anybody point me to documentation?


--

Bill Cheeseman
b...@cheeseman.name

_______________________________________________

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 arch...@mail-archive.com

Reply via email to