Rather undocumented... Not sure what you use, but if it is the WirelessInfo structure defined in Apple80211.h then it is a 16bit integer. I can't find the documentation, but for a 26 step NSLevelIndicator, the code looks (and works) like this:
Not sure any more how I got the 2520 constant, but it works :-)Code:WirelessInfo networkInfo; WirelessContextPtr context; context = NULL; WirelessAttach(&context,0); WirelessGetInfo(context, &networkInfo); [signalGauge setDoubleValue: (networkInfo.signal/2520)];



LinkBack URL
About LinkBacks

Reply With Quote

Bookmarks