Retrieves information about the specified file.
Original signature is '- (BOOL)getInfoForFile:(NSString *)fullPath application:(NSString **)appName type:(NSString **)type'
Available in Mac OS X v10.0 and later.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public virtual bool GetInfoForFileApplicationType( NSString fullPath, out NSString appName, out NSString type )
Public Overridable Function GetInfoForFileApplicationType ( _ fullPath As NSString, _ <OutAttribute> ByRef appName As NSString, _ <OutAttribute> ByRef type As NSString _ ) As Boolean
public: virtual bool GetInfoForFileApplicationType( NSString^ fullPath, [OutAttribute] NSString^% appName, [OutAttribute] NSString^% type )
Parameters
- fullPath (NSString)
- The full path to the desired file.
- appName (NSString%)
- The application the system would use to open the file.
- type (NSString%)
- On input, a pointer to a string object variable; on return, if the method is successful, this variable contains a string object with the filename extension or encoded HFS file type of the file.
Return Value
YES if the information was retrieved successfully; otherwise, NO if the file could not be found or the application was not associated with the file.
Version Information
- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)