Hi,
I am trying the example in "Creating XPCOM Components". In that document, the webLock component registered "xpcom-startup" and "content-policy" as following:
//suppose "servman" have been initiated
nsCOMPtr<nsICategoryManager>catman;
servman->GetServiceByContractID(NS_CATEGORYMANAGER_CONTRACTID,...);
catman->AddCategoryEntry("xpcom-startup",...)
catman->AddCategoryEntry("content-policy",...)
So my questions are:
a) Is there document, in which I can find all the categoies that mozilla support?
b) nsICategoryManager interface is not frozen. So can anyone tell me whether I can use other frozen interface to have my component register to events?
c) Could you guys explain the observer register and notification machenism?
thanks a lot for any information or suggestion.
banli
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
