Benjamin D. Smedberg wrote:
Michael J. Sherman wrote:



Hey all,

I'm writing an app, and I need to store local user preferences. Instead of mucking about with the LocalFile interface, is there some 'preference' kind of key-pair interface already available? I'm not talking just the Mozilla preferences (browser stuff), but a more generic interface I can use for my own app's preferences and data.


nsIPrefService/nsIPrefBranch

--BDS

Is there any way to store arrays of items? For example, I have a group of 3-4 settings, but the user can create multiple "sets" of these settings, but it looks like the PrefService is a single key/value kinda of setup.

Right now I'm leaning towards just a file stored in the prefs directory and read/write XML to that to store this info.

Thanks,
Michael
_______________________________________________
Mozilla-xpcom mailing list
[email protected]
http://mail.mozilla.org/listinfo/mozilla-xpcom

Reply via email to