Tuesday, June 26, 2007

svn external

svn:external is a very useful feature, it allows you to link other repositories into yours.

svn propedit svn:externals .

Sunday, June 24, 2007

XPCOM to store your data

Here are some more links after my research.

If you are using Javascript to write an XPCOM Component to store your data, you can store objects of any kind, and it’s better to make it a service rather than an instance.


Saturday, June 23, 2007

XPIDL - Defining your XPCOM Component Interface

It didn’t take long before I arrived at a point where I need to define an interface that has a lot more to do than just returning Strings. To find out more, here are some very good resources:

How to use an XPCOM Component?

In the last post, I created an article on How to create a Javascript XPCOM component in 5 minutes”. To make it a little more complete, I will provide the details on how to use the XPCOM Component that you created in this post.

It turns out to be pretty simple once you have followed the instructions from the previous post. The code snippets is shown below.

try {
// this is needed to generally allow usage of components in javascript

var fc = Components.classes['@hungryfools.com/helloworld;1']

} catch (anError) {
LOG("ERROR: " + anError);

Reference: http://developer.mozilla.org/en/docs/How_to_Build_an_XPCOM_Component_in_Javascript