Re: NSUserDefaults for portable applications
Re: NSUserDefaults for portable applications
- Subject: Re: NSUserDefaults for portable applications
- From: Conor Dearden <email@hidden>
- Date: Wed, 22 Feb 2006 22:34:40 +0100
> a) it won't modify any existing preferences on the system even if
> from the same application
> b) it won't leave any 'traces' on the system but only modify
> preferences & application support files on the portable media.
In that case simply load your portable domain with the "volatile" functions
of NSUserDefault. This means it won't last past the life of the UserDefault
object. And it won't make it to the standard preference file location. So
make sure to read them and write them out to file when terminating the
application. I believe auto save feature will save values to the standard
domain, so you will have to move any auto save values into your code
programmatically to save them to your volatile domain.
Conor
www.bruji.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden