ActiveBlog

controllers controllers controllers
by Shane Caraveo

Shane Caraveo, April 24, 2006

Komodo has a long history, going back to m13 (Mozilla Milestone 13, or around version 0.7/0.8). Often we did things to work around limitations or problems that existed at various stages during the development of the mozilla code base. Once...

Komodo has a long history, going back to m13 (Mozilla Milestone 13, or around version 0.7/0.8).  Often we did things to work around limitations or problems that existed at various stages during the development of the mozilla code base.  Once in a while, I dig back through stuff and see if something can be done better.  I made a "discovery" today regarding controllers, or more specifically, embedding/components/controllerhandler in cvs. 

At first it seemed to me that this work was done for performance reasons.  The only place it is used in mozilla is by composer.  After doing some quick comparisons between our current controller code, and some built around nsIControllerCommandTable, I figure there is no real perf improvement, and actually some potential slowdown.  However, there are some nice new capabilities that could make it worthwhile to use anyway.

Browse the idl files and you'll find that there are some enhancements (which have been around for years, but not very visible when we wrote our controller code) that allow you to call doCommand with parameters that get sent to the command handler.  There is also some functionality to allow context to be given to the controllers.  This all looks pretty interesting, but unfortunately no documentation or good examples really exist.

Subscribe to ActiveState Blogs by Email

Share this post:

Comments

2 comments for controllers controllers controllers
Permalink

Hello Shane, and sorry to ask this question here.

Could Komodo open-source its scintilla plugin ? That would be something really huge for the mozilla community.

Best regards,

Daniel Glazman, the guy behind Nvu and mozilla editor
daniel ATT glazman DOTT org

Permalink

http://www.scintilla.org/
Is this the Scintilla Daniel is talking about ?
If it is its already onpe Source !
Go FLOSS