[Project_owners] exchange data between instance

Brian King brian at mozdev.org
Thu Sep 11 22:07:08 EDT 2003


Biju G C wrote:

> I did not get how to use nsIWindowmediator for my purpose
> 
> I tried...
<snip>

If you know the window type (found using the 'windowtype' attribute on 
the <window> element) of the window you are looking for, thats the 
easiest way to find it.

Nice example here:
http://lxr.mozilla.org/mozilla/source/browser/base/content/browser.js#2120

If it doesn't find an open window, it launches a new one -- behaviour 
you can change if you don't need it of course.

Usage is 3 lines above it.

-- 
Brian King
www.mozdev.org
www.mozdevgroup.com



More information about the Project_owners mailing list