I'm trying to access the values from a CFDictionary. I've started by implementing code suggested in this question:
CFTypeRef r = IOPSCopyPowerSourcesInfo();
CFArrayRef array = IOPSCopyPowerSourcesList(r);
CFDictionaryRef powerDic = IOPSGetPowerSourceDescription(array, r);
I have looked at the documentation plus other posts, but it's a bit beyond me how to work it.
What I really need is some example code that takes the code I already have and uses it to print a string of, for example, "Current Capacity".