title: Getting values from a CFDictionary
body: <p>I'm trying to access the values from a CFDictionary. I've started by implementing code suggested in <a href="https://stackoverflow.com/questions/272552/battery-status-in-osx">this question</a>:</p>
  
  <pre><code> CFTypeRef r = IOPSCopyPowerSourcesInfo();
   CFArrayRef array = IOPSCopyPowerSourcesList(r);
   CFDictionaryRef powerDic = IOPSGetPowerSourceDescription(array, r);
  </code></pre>
  
  <p>I have looked at the documentation plus <a href="https://stackoverflow.com/questions/2225019/getting-numbers-from-a-cfdictionary-for-use-in-calculations-iphone">other posts</a>, but it's a bit beyond me how to work it. </p>
  
  <p>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".</p>