iPhone Pref changes
iPhone Pref changes
- Subject: iPhone Pref changes
- From: Peter Hentges <email@hidden>
- Date: Thu, 17 Sep 2009 14:27:24 -0500
With screen brightness being a big factor in battery life on my iPhone, I find myself frequently swiping over to the Settings app, accessing the Brightness setting, and adjusting it to suit my current setting and the application I'm planning to use. (Using the camera outside on a sunny day vs. reading and writing in SimpleNote in a darkened room, for example.)
I'm doing this often enough that it gets a bit annoying and I figured I could build myself a little utility to:
a) set the system-wide brightness that will persist when I switch apps.
b) set up and save some presets for easy access.
Nice little project for a first app, yes?
Doing some initial digging through the developer documentation, I've found the Preferences Programming Topics for Core Foundation document and functions like CFPreferencesCopyAppValue and CFPreferencesSetAppValue.
I'm not seeing, at first glance, the means of accomplishing my first task. CFPreferencesSetAppValue, for example, specifically says to not pass kCFPreferencesAnyApplication.
Is there a security restriction upon accessing the device-wide preferences outside the Settings app? Or am I missing the documentation on accessing and setting them?
Thanks in advance for any help!
--
Peter Hentges
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden