MonobjcMonobjc Documented Class Library
URLForImageResource Method (__target, name)
NamespacesMonobjc.AppKitNSBundle_AppKitAdditionsURLForImageResource(NSBundle, NSString)

Returns the location of the specified image resource as an NSURL.

Original signature is '- (NSURL *)URLForImageResource:(NSString *)name'

Available in Mac OS X v10.6 and later.

Declaration Syntax
C#Visual BasicVisual C++
public static NSURL URLForImageResource(
	this NSBundle __target,
	NSString name
<ExtensionAttribute> _
Public Shared Function URLForImageResource ( _
	__target As NSBundle, _
	name As NSString _
static NSURL^ URLForImageResource(
	NSBundle^ __target, 
	NSString^ name
__target (NSBundle)
The target instance.
name (NSString)
The name of the image resource file. Including a filename extension is optional.
Return Value
An NSURL for 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)

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