MonobjcMonobjc Documented Class Library
URLForResourceWithExtensionSubdirectory Method (name, extension, subpath)
NamespacesMonobjc.FoundationNSBundleURLForResourceWithExtensionSubdirectory(NSString, NSString, NSString)

Returns the file URL for the resource file identified by the specified name and extension and residing in a given bundle directory.

Original signature is '- (NSURL *)URLForResource:(NSString *)name withExtension:(NSString *)extension subdirectory:(NSString *)subpath'

Available in Mac OS X v10.6 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual NSURL URLForResourceWithExtensionSubdirectory(
	NSString name,
	NSString extension,
	NSString subpath
Public Overridable Function URLForResourceWithExtensionSubdirectory ( _
	name As NSString, _
	extension As NSString, _
	subpath As NSString _
virtual NSURL^ URLForResourceWithExtensionSubdirectory(
	NSString^ name, 
	NSString^ extension, 
	NSString^ subpath
name (NSString)
The name of a resource file contained in the directory specified by bundleURL.
extension (NSString)
If extension is an empty string or nil, the extension is assumed not to exist and the file URL is the first file encountered that exactly matches name.
subpath (NSString)
The path of a top-level bundle directory. This must be a valid path. For example, to specify the bundle directory for a Mac OS X application, you might specify the path /Applications/
Return Value
The file URL for the resource file or nil if the file could not be located. This method also returns nil if the bundle specified by the bundlePath parameter does not exist or is not a readable directory.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later)

Assembly: Monobjc.Foundation (Module: Monobjc.Foundation)