You are currently viewing a snapshot of www.mozilla.org taken on April 21, 2008. Most of this content is highly out of date (some pages haven't been updated since the project began in 1998) and exists for historical purposes only. If there are any pages on this archive site that you think should be added back to www.mozilla.org, please file a bug.
Service allows a client listener (
nsIObserver) to register and unregister for notifications ofa specific string referenced topic. Service also provides a way to notify registered listeners and a way to enumerate registered client listenersvoid nsIObserverService::addObserver( in nsIObserver anObserver,in string aTopic, in boolean ownsWeak)
ownsWeak:If set to
nsIObserverServicewill hold a strong reference to
anObserver. If set to
nsIWeakReferenceinterface, a weak reference will be held. Otherwise an error will be returned.
void nsIObserverService::notifyObservers( in nsISupports aSubject,in string aTopic, in wstring someData)
| Written by:Ellen Evans | Comments, questions, complaints?