Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Mac > Mac Programmer Help > How can I read ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 3692 of 3794
Post > Topic >>

How can I read the system power management settings

by Spacen Jasset <jmspashett@[EMAIL PROTECTED] > Apr 4, 2008 at 02:35 AM

The power management settings are stored here.

/Library/Preferences/SystemConfiguration/
com.apple.PowerManagement.plist

 But how do I read them with the preferences API?

I tried this, but the returned list was null
CFStringRef app_id =
         CFStringCreateWithCStringNoCopy(kCFAllocatorDefault,
         "com.apple.PowerManagement", kCFStringEncodingUTF8,
         kCFAllocatorNull );


     CFArrayRef list = CFPreferencesCopyKeyList (
             app_id,
             kCFPreferencesAnyUser,
             kCFPreferencesAnyHost
             );




 1 Posts in Topic:
How can I read the system power management settings
Spacen Jasset <jmspash  2008-04-04 02:35:54 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 4 16:49:29 CDT 2008.