Talk:Preferences System
From MDC
[edit] A Few Things Missing From This Page
There are some things [that I would call] missing from this page that would greatly help me start using the new preferences system.
- What file does the "Code for a typical preferences window" go in? Can it be any XUL file in my extension's content directory?
- Do I need to add that file as an overlay to chrome.manifest? If so, what chrome file is it an overlay for?
(by User:S280Z28)
- A preferences window is similar to any other window you can have in your extension. Thus, it can be in an arbitrary XUL file in your content package and it doesn't need its own line in chrome.manifest - the content registration line is what registers it. I believe this information is outside the scope of this page, although some tutorials out there ought to mention it. --Nickolay 04:14, 9 November 2005 (PST)
- Maybe there should be a complete example on the examples page. The information may be available in tutorials or such elsewhere, but if it is, then they are certainly not easy to find. At least a link to any that you know of could go in an External Examples section on the examples page. For developers new to the Firefox extension system, small but completely working examples of different items are immensely useful. --S280Z28
- Sure, it's just that nobody had time/desire to put together a few examples. Feel free to add some once you figure it out. My InfoLister extension uses a prefwindow, you can extract some information you need from its code. And if you run into problems you can't solve, feel free to post to the Extensions forum. --Nickolay 15:40, 9 November 2005 (PST)