Talk:File IO: Difference between revisions

From MozillaZine Knowledge Base
Jump to navigationJump to search
(starting a local version of MonkeySage's jsio.js)
(explaining the revert)
Line 1: Line 1:
<pre>var file = Components.classes["@mozilla.org/file/directory_service;1"].
createInstance(Components.interfaces.nsIProperties).
get("ProfD", Components.interfaces.nsIFile);</pre>
-- should that be getService or createInstance? I'd use getService and [http://www.google.com/search?&q=mozilla%20directory_service%20nsIProperties%20createInstance Google] [http://www.google.com/search?hl=en&lr=&c2coff=1&q=mozilla+directory_service+nsIProperties+getService&btnG=Search thinks] that both are possible.
[[User:Asqueella|Asqueella]] 08:19, 21 Dec 2004 (PST)~
:I believe, getService is more appropriate, changed the article. [[User:Asqueella|Asqueella]] 08:34, 21 Dec 2004 (PST)~
== starting a local version of MonkeySage's jsio.js ==
== starting a local version of MonkeySage's jsio.js ==


Line 13: Line 4:


-grimholtz
-grimholtz
== em_te's edit ==
em_te:
You don't actually need to assign:
x = x.QI(...)
has the same effect as
x.QI(...)
-[[User:Asqueella|asqueella]]

Revision as of 12:22, 22 March 2005

starting a local version of MonkeySage's jsio.js

Since bugs have been found in MonkeySage's jsio.js at http://gratisdei.com/io.js, I'm going to start a local branch of it here where we can refine it and clean it up w/o asking MonkeySage to change his website.

-grimholtz

em_te's edit

em_te: You don't actually need to assign:

x = x.QI(...)

has the same effect as

x.QI(...)

-asqueella