[uuid(614c3010-1dd2-11b2-be04-bcd57a64ffc9)]
Constants
Attributes
fileSizeWithResFork Returns the combined size of both the data fork and the resource fork (if present) rather than just the size of the data fork as returned by GetFileSize()
Methods
getCFURL Returns the CFURLRef of the file object. The caller is responsible for calling CFRelease() on it. NOTE: Observes the state of the followLinks attribute. If the file object is an alias and followLinks is TRUE, returns the target of the alias. If followLinks is FALSE, returns the unresolved alias file. NOTE: Supported only for XP_MACOSX or TARGET_CARBON @return
getFSRef Returns the FSRef of the file object. NOTE: Observes the state of the followLinks attribute. If the file object is an alias and followLinks is TRUE, returns the target of the alias. If followLinks is FALSE, returns the unresolved alias file. NOTE: Supported only for XP_MACOSX or TARGET_CARBON @return
getFSSpec Returns the FSSpec of the file object. NOTE: Observes the state of the followLinks attribute. If the file object is an alias and followLinks is TRUE, returns the target of the alias. If followLinks is FALSE, returns the unresolved alias file. @return
initToAppWithCreatorCode Init this object to point to an application having the given creator code. If this app is missing, this will fail. It will first look for running application with the given creator. @param aAppCreator the signature of the app
initWithCFURL Init this object with a CFURLRef NOTE: Supported only for XP_MACOSX or TARGET_CARBON NOTE: If the path of the CFURL is /a/b/c, at least a/b must exist beforehand. @param aCFURL the CoreFoundation URL
initWithFSRef Init this object with an FSRef NOTE: Supported only for XP_MACOSX or TARGET_CARBON @param aFSRef the native file spec
initWithFSSpec Init this object with an FSSpec Legacy method - leaving in place for now @param aFileSpec the native file spec
isPackage returns true if a directory is determined to be a package under Mac OS 9/X
launchWithDoc Launch the application that this file points to with a document. @param aDocToLoad Must not be NULL. If no document, use nsILocalFile::launch @param aLaunchInBackground TRUE if the application should not come to the front.
openDocWithApp
Open the document that this file points to with the given application.
@param aAppToOpenWith The application with which to open the document.
If NULL, the creator code of the document is used
to determine the application.
@param aLaunchInBackground TRUE if the application should not come to the front.
setFileTypeAndCreatorFromExtension Sets the file type and creator code from a file extension Internet Config is used to determine the mapping. @param aExtension
Compare to:
