MonobjcMonobjc Documented Class Library
PathsForResourcesOfTypeInDirectory Method (extension, subpath)
NamespacesMonobjc.FoundationNSBundlePathsForResourcesOfTypeInDirectory(NSString, NSString)

Returns an array containing the pathnames for all bundle resources having the specified filename extension and residing in the resource subdirectory.

Original signature is '- (NSArray *)pathsForResourcesOfType:(NSString *)extension inDirectory:(NSString *)subpath'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual NSArray PathsForResourcesOfTypeInDirectory(
	NSString extension,
	NSString subpath
Public Overridable Function PathsForResourcesOfTypeInDirectory ( _
	extension As NSString, _
	subpath As NSString _
) As NSArray
virtual NSArray^ PathsForResourcesOfTypeInDirectory(
	NSString^ extension, 
	NSString^ subpath
extension (NSString)
The file extension. If extension is an empty string or nil, the extension is assumed not to exist, all the files in subpath are returned.
subpath (NSString)
The name of the bundle subdirectory to search.
Return Value
An array containing the full pathnames for all bundle resources matching the specified criteria. This method returns an empty array of no matching resource files are found.
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)