Skip navigation.
 
mlNSUserDefaults from within a bundle
FROM : Benjamin Einstein
DATE : Sun Jul 02 18:17:58 2006

Hi All,

It seems storing user preferences in an application's bundle is a 
scary concept to most, if it's even possible. We have an application 
that's stored on the network, is copied from the server to the local 
machine via another application, and then launched by that 
application. The application can also be used offline. We would 
really prefer to have global, "traveling" preferences that are 
embedded in the application bundle but can be modified locally (don't 
worry about rights, you must be a system admin and an application 
admin to make preferences changes). Is there a way to use 
NSUserDefaults to do this? Maybe CFPreferences? I can read a pre-
compiled plist in the bundle using NSBundle, but I have no idea how 
to write and load specific key values. Any ideas?

There's one major catch: the application would have to be copied back 
when the user quits so other users get their updated preferences. 
Hmmmm. It would be okay unless the write failed.

Thanks,
Ben

Related mailsAuthorDate
mlLengthy questions from a newbie beinstein Jun 20, 00:41
mlRe: Lengthy questions from a newbie Yorh Jun 20, 01:24
mlRe: Lengthy questions from a newbie colela Jun 20, 01:38
mlRe: Lengthy questions from a newbie James Bucanek Jun 20, 02:24
mlRe: Lengthy questions from a newbie Paul Lynch Jun 20, 18:39
mlRe: Lengthy questions from a newbie Keary Suska Jun 20, 18:44
mlRe: Lengthy questions from a newbie (and a new problem) Benjamin Einstein Jun 22, 01:26
mlRe: Lengthy questions from a newbie (and a new problem) Ryan Britton Jun 22, 01:39
mlRe: Lengthy questions from a newbie (and a new problem) Benjamin Einstein Jun 22, 01:45
mlRe: Lengthy questions from a newbie (and a new problem) Shaun Wexler Jun 22, 02:15
mlNSUserDefaults from within a bundle Benjamin Einstein Jul 2, 18:17
mlRe: NSUserDefaults from within a bundle Bill Bumgarner Jul 2, 19:03
mlRe: NSUserDefaults from within a bundle Paul Collins Jul 2, 20:25
mlRe: NSUserDefaults from within a bundle Benjamin Einstein Jul 2, 20:33