Category:XPCOM example code: Difference between revisions

From MozillaZine Knowledge Base
Jump to navigationJump to search
No edit summary
No edit summary
Line 8: Line 8:
* [[Using observers]] explains using <code>nsIObserverService</code> and <code>nsIObserver</code>.
* [[Using observers]] explains using <code>nsIObserverService</code> and <code>nsIObserver</code>.
* [[Dev : Using preferences]] covers <code>nsIPrefService</code>, <code>nsIPrefBranch</code> and <code>nsIPrefBranchInternal</code>/<code>nsIPrefBranch2</code> and <code>nsIPrefLocalizedString</code>.
* [[Dev : Using preferences]] covers <code>nsIPrefService</code>, <code>nsIPrefBranch</code> and <code>nsIPrefBranchInternal</code>/<code>nsIPrefBranch2</code> and <code>nsIPrefLocalizedString</code>.
* [[nsIFilePicker]] explains using <code>nsIFilePicker</code>, as you probably already have guessed.
* [http://developer.mozilla.org/en/docs/nsIFilePicker nsIFilePicker] is used to invoke standard Open File / Save File / Select folder dialogs.
* [[nsIWindowMediator]]
* [[nsIWindowMediator]] - used to retrieve information about open windows
* [[Prompt service]] gives examples on <code>nsIPromptService</code> methods.
* [[Prompt service]] - <code>nsIPromptService</code> is used to open simple dialogs.


Below is the alphabetic listing of articles in this category, generated automatically.
Below is the alphabetic listing of articles in this category, generated automatically.

Revision as of 18:46, 17 June 2006

Up to Example code

Articles explaining how to use certain XPCOM components.

  • File IO covers nsIFile, nsILocalFile and related interfaces, including a few examples on nsIFileOutputStream, nsIFileInputStream, nsIScriptableInputStream, nsILineInputStream and more.
  • Progress listeners explains how one should go about implementing nsIWebProgressListener interface.
  • Running applications includes examples on nsILocalFile.launch() and nsIProcess.
  • Using observers explains using nsIObserverService and nsIObserver.
  • Dev : Using preferences covers nsIPrefService, nsIPrefBranch and nsIPrefBranchInternal/nsIPrefBranch2 and nsIPrefLocalizedString.
  • nsIFilePicker is used to invoke standard Open File / Save File / Select folder dialogs.
  • nsIWindowMediator - used to retrieve information about open windows
  • Prompt service - nsIPromptService is used to open simple dialogs.

Below is the alphabetic listing of articles in this category, generated automatically.

This category currently contains no pages or media.