[Mono-devel-list] saving preferences
A Rafael D Teixeira
rafaelteixeirabr at hotmail.com
Mon Mar 1 12:57:10 EST 2004
>From: "Alvaro A. Ramirez" <alramire at ecs.syr.edu>
>
>i'm currently writing an application which will be used on both win32
>and linux. i'm curious as to how to save user preferences. so far i am
>doing it to an xml file
OK to save user preferences in xml files, or if it gets too big you can use
binary serialization.
>, but where should i save this?
Use the IsolatedStorage classes, this gives you a per-user/per-program
directory and it works in both implementations/platforms.
>i could use the home directory, but what about win32? registry?
Don't use the registry, it's more a source of problems than one of
solutions.
IsolatedStorage currently maps to a subdirectory of home in Linux and a
subdirectory of Documents And Settings\<user> in windows, and takes care of
the whole issue at a higher-level of abstraction.
>do i really need two different implementations?
As I said: No.
>regards,
>
>alvaro
Best Regards,
Rafael "Monoman" Teixeira
Mono Hacker since 16 Jul 2001 - http://www.go-mono.org/
MonoBrasil Founding Member - Membro Fundador do MonoBrasil
http://monobrasil.softwarelivre.org
English Blog: http://monoblog.blogspot.com/
Brazilian Portuguese Blog: http://monoblog.weblogger.terra.com.br/
_________________________________________________________________
MSN Messenger: instale grátis e converse com seus amigos.
http://messenger.msn.com.br
More information about the Mono-devel-list
mailing list