PDA

View Full Version : How To Access Battery Information/Percentage in Cocoa?




sheepopo39
Apr 23, 2011, 09:04 PM
I'm wondering how to access your battery information through cocoa (such as your battery percentage, time remaining). I know that on iOS you access it through UIDevice, but I cannot think of an equivalent one for OS X, does anyone know?



kainjow
Apr 24, 2011, 12:18 AM
Second result in google for "How To Access Battery Information in Cocoa" got me here: http://stackoverflow.com/questions/272552/battery-status-in-osx