Talk:File IO: Difference between revisions

From MozillaZine Knowledge Base
Jump to navigationJump to search
(getService or createInstance ?)
m (Marking the extension dir as readonly?)
 
(9 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<pre>var file = Components.classes["@mozilla.org/file/directory_service;1"].
== starting a local version of MonkeySage's jsio.js ==
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.
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.


[[User:Asqueella|Asqueella]] 08:19, 21 Dec 2004 (PST)~
-grimholtz
 
== Marking the extension dir as readonly? ==
 
Re: [[File_IO#Getting your extension's folder]]:
Shouldn't it be noted that the folder could be read-only (e.g. when installed by an admin into the app dir on 1.5)?  Otherwise people might be tempted to store data files in there again...
--[[User:Mook|Mook]] 15:55, 9 January 2006 (UTC)

Latest revision as of 15:55, 9 January 2006

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

Marking the extension dir as readonly?

Re: File_IO#Getting your extension's folder: Shouldn't it be noted that the folder could be read-only (e.g. when installed by an admin into the app dir on 1.5)? Otherwise people might be tempted to store data files in there again... --Mook 15:55, 9 January 2006 (UTC)