MonobjcMonobjc Documented Class Library
PathForImageResource Method (__target, name)
NamespacesMonobjc.AppKitNSBundle_AppKitAdditionsPathForImageResource(NSBundle, NSString)

Returns the location of the specified image resource file.

Original signature is '- (NSString *)pathForImageResource:(NSString *)name'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public static NSString PathForImageResource(
	this NSBundle __target,
	NSString name
<ExtensionAttribute> _
Public Shared Function PathForImageResource ( _
	__target As NSBundle, _
	name As NSString _
) As NSString
static NSString^ PathForImageResource(
	NSBundle^ __target, 
	NSString^ name
__target (NSBundle)
The target instance.
name (NSString)
The name of the image resource file, without any pathname information. Including a filename extension is optional.
Return Value
The absolute pathname of the resource file or nil if the file was not found.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type NSBundle. When you use instance method syntax to call this method, omit the first parameter.
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)