Compare Revisions

Using the Clipboard

Revision 327133:

Revision 327133 by kmaglione on

Revision 327135:

Revision 327135 by kmaglione on

Title:
Using the Clipboard
Using the Clipboard
Slug:
Using_the_Clipboard
Using_the_Clipboard
Content:

Revision 327133
Revision 327135
n108    <p>n
109      Next, we need to create a clipboard object that refers to t
>he system clipboard. 
110    </p>
t112var clipid = Components.interfaces.nsIClipboard;t
113var clip   = Components.classes["@mozilla.org/widget/clipboard;1"
>].getService(clipid); 
114clip.setData(trans, null, clipid.kGlobalClipboard);109Services.clipboard.setData(trans, null, Services.clipboard.kGloba
 >lClipboard);

Back to History