
nsISupports
This is the interface from which all other XPCOM interfaces inherit. It provides the foundation for XPCOM interface discovery and lifetime object management. The interface is partially scriptable.
Provides a mechanism for requesting interfaces to which a given object might provide access. This method is scriptable.
Syntax:
void nsISupports::QueryInterface(in nsIIDRef uuid, [iid_is(uuid),retval] out nsQIResult result);Parameters:
nsresult:
Increments the internal refcount of the interface. This method is included for completeness. When writing code, use of
NS_ADDREFor annsCOMPtrto manage incrementing is strongly preferred. This method is not scriptable. In JavaScript it is taken care of automatically by XPConnect.Syntax:
nsrefcnt nsISupports::AddRef()Parameters:
Result:
Decrements the internal refcount of the interface. When the count reaches zero, the interface deletes itself. This method is included for completeness. When writing code, use of
NS_RELEASEor annsCOMPtrto manage decrementing is strongly preferred. This method is not scriptable. In JavaScript it is taken care of automatically by XPConnect.Syntax:
nsrefcnt nsISupports::Release()Parameters:
Result:
| Written by:Ellen Evans | Comments, questions, complaints?
Bug 143387 |