MonobjcMonobjc Documented Class Library
InitByReferencingFile Method (filename)
NamespacesMonobjc.AppKitNSImageInitByReferencingFile(NSString)

Initializes and returns an NSImage instance and associates it with the specified file.

Original signature is '- (id)initByReferencingFile:(NSString *)filename'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual Id InitByReferencingFile(
	NSString filename
)
Public Overridable Function InitByReferencingFile ( _
	filename As NSString _
) As Id
public:
virtual Id^ InitByReferencingFile(
	NSString^ filename
)
Parameters
filename (NSString)
A full or relative path name specifying the file with the desired image data. Relative paths must be relative to the current working directory.
Return Value
An initialized NSImage instance, or nil if the new instance cannot be initialized.
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)