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 Basic | Visual C++ |
<ExtensionAttribute> _ Public Shared Function URLForImageResource ( _ __target As NSBundle, _ name As NSString _ ) As NSURL
[ExtensionAttribute] public: static NSURL^ URLForImageResource( NSBundle^ __target, NSString^ name )
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)