> From mail:
> > > I just put up a patch for the XPCOM portion for XP relative file > descs. http://bugzilla.mozilla.org/show_bug.cgi?id=12911 > The patch has one skanky thing I'm now thinking I should change: > > + // Now just become the target file > + *this = *(nsLocalFile *)(targetFile.get()); > > Since we don't have dynamic_cast everywhere, that's not cool. Trying > to figure out how else to do that. I could also make "this" equivalent > to the other file by a GetPath/SetPath but that's really slow on the > Mac. Is it possible to define an IID for nsLocalFile (the type of the > impl)? and then QI it? Then I could assign. > > -Conrad > > What I'd like to do is have a way, without RTTI, to get a nsLocalFile* from an nsILocalFile* The QI to a private IID which corresponds to no iface looks promising, unless somebody knows of a better way. -Conrad
