MonobjcMonobjc Documented Class Library
IconForFileType Method (fileType)
NamespacesMonobjc.AppKitNSWorkspaceIconForFileType(NSString)

Returns an image containing the icon for files of the specified type.

Original signature is '- (NSImage *)iconForFileType:(NSString *)fileType'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual NSImage IconForFileType(
	NSString fileType
)
Public Overridable Function IconForFileType ( _
	fileType As NSString _
) As NSImage
public:
virtual NSImage^ IconForFileType(
	NSString^ fileType
)
Parameters
fileType (NSString)
The file type, which may be either a filename extension or an encoded HFS file type.
Return Value
The icon associated with files of the given type.
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)

Assembly: Monobjc.AppKit (Module: Monobjc.AppKit)