Patient Guy wrote:
Using Venkman, there are no properties at all, it has only one function: QueryInterface(). Is this an nsISupports component? The references say that on the enumerated items from directoryEntries, .getNext() is supposed to return an nsIFile component/object.

What the documentation means is that the enumerator will contain nsIFile objects; but since that interface is a generic one, and IDL does not support parametrized types, you are getting an nsISupports object.


In short, you need to QI it to nsIFile:
  fItem = fItem.QueryInterface(Components.interfaces.nsIFile);
(or nsILocalFile, which should also work)
_______________________________________________
Mozilla-xpcom mailing list
[email protected]
http://mail.mozilla.org/listinfo/mozilla-xpcom

Reply via email to