MonobjcMonobjc Documented Class Library
PathForResourceOfTypeInDirectory Method (name, extension, subpath)
NamespacesMonobjc.FoundationNSBundlePathForResourceOfTypeInDirectory(NSString, NSString, NSString)

Returns the full pathname for the resource identified by the specified name and file extension and located in the specified bundle subdirectory.

Original signature is '- (NSString *)pathForResource:(NSString *)name ofType:(NSString *)extension inDirectory:(NSString *)subpath'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual NSString PathForResourceOfTypeInDirectory(
	NSString name,
	NSString extension,
	NSString subpath
Public Overridable Function PathForResourceOfTypeInDirectory ( _
	name As NSString, _
	extension As NSString, _
	subpath As NSString _
) As NSString
virtual NSString^ PathForResourceOfTypeInDirectory(
	NSString^ name, 
	NSString^ extension, 
	NSString^ subpath
name (NSString)
The name of the resource file.
extension (NSString)
If extension is an empty string or nil, all the files in subpath and its subdirectories are returned. If an extension is provided the subdirectories are not searched.
subpath (NSString)
The name of the bundle subdirectory. Can be nil.
Return Value
An array of full pathnames for the subpath or nil if no files are located.
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.Foundation (Module: Monobjc.Foundation)