I've read the Apple doc about Preferences but this is still a little bit complex for me to understand. I have an application with a custom screen for setting the Preferences, and I'd like just the code to manage the read and write stuff.
Would you know a detailed tutorial (not writen years ago) or a project sample code somewhere I could read to understand ?
You should use NSUserDefaults :
You set it like that:
then you can set new objects like that:
when you need to read a value you can use :
and remember to synchronize your changes after each change:
BTW
You can read and write to the NSUserDefaults from any view in your application.
Edit
To see all of the data in the NSUserDefaults you can use:
This will print all the keys and values stored in the plist.
GOOD LUCK