Returns a CFArray of Power Source handles, each of type CFTypeRef.
- macOS 10.2+
- Mac Catalyst 13.0+
Takes the CFTypeRef returned by IOPSCopyPowerSourcesInfo()
Returns NULL if errors were encountered, otherwise a CFArray of CFTypeRefs. Caller must CFRelease() the returned CFArrayRef.
The caller shouldn't directly access the CFTypeRefs, but should use IOPSGetPowerSourceDescription on each member of the CFArrayRef.