[Project_owners] Extension preferences

Pete Collins pete at mozdev.org
Thu Jan 15 13:12:49 EST 2004


Nathan R. Yergler wrote:
> Is there any documentation on implementing Preferences for an 
> extension?  I found the prefs module in jsLib, and was able to add a 
> prefs page to the Mozilla prefs dialog, and that all works as expected.  
> Now I'm trying to get my changes to save when the user clicks OK (and 
> not when they click Cancel), but haven't had any luck.  Suggestions?


I didn't finsish the pres documentation. :}

To save the pref:

   prefs.save()

To reset:

   prefs.reset();

To reset user prefs:

   prefs.resetUser();

To clear the user prefs:

   prefs.clear();

I'll finish the docs now.

--pete


-- 
Pete Collins
www.mozdev.org
www.mozdevgroup.com



More information about the Project_owners mailing list