Re: nsHelperAppDlg.js

Doug Turner <[email protected]>
Newsgroups gmane.comp.mozilla.devel.xpcom
Organization Another Netscape Collabra Server User
Message-ID <[email protected]>
Jason Labumbard wrote:
> I dont know if this is the right newsgroup for this but I am trying to 
> dynamically register and unregister nsHelperAppDlg.js.  I can see at the 
> end of the file it has all the info needed to register the module.  I 
> don't plan on needing it register all that often, but I don't want to 
> just delete it.  Specifically, I am planning on setting an option in 
> prefs that allows that file to be registered or not and I want to do 
> this via a js file.  If anyone could help me out it would be greatly 
> appreciated!
> 
> Jason
> 

In your registerSelf function, aquire the preferences service and ask 
preferences if should be registered.  I am totally sure how you plan to 
reregistar this component when the pref is changed back.

Maybe it would be better the functionality provided by this component 
check the pref prior to doing what it does.

doug
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.