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.



XPCOM & Utilities [ << Previous | Contents | Next >> ]
  • XPCOM (XP = cross platform)
    • Component based architecture.
      • Components are dynamically registered with a cross platform registry.
      • Component retrieval is accomplished via do_CreateInstance() and do_GetService().
    • Similar to COM, however, it does not support...
      • transparent cross-thread or DCOM-like cross-process proxying.
    • Reference counting memory management model.
    • nsISupports (functionally equivalent to IUnknown)
      • QueryInterface(), AddRef(), Release()
  • Utility/convenience classes
    • nsA[C]String - root Mozilla abstract string class.
    • nsCOMPtr is XPCOM's "smart pointer."