MonobjcMonobjc Documented Class Library
PathForResourceOfType Method (name, extension)
NamespacesMonobjc.FoundationNSBundlePathForResourceOfType(NSString, NSString)

Returns the full pathname for the resource identified by the specified name and file extension.

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

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual NSString PathForResourceOfType(
	NSString name,
	NSString extension
Public Overridable Function PathForResourceOfType ( _
	name As NSString, _
	extension As NSString _
) As NSString
virtual NSString^ PathForResourceOfType(
	NSString^ name, 
	NSString^ extension
name (NSString)
The name of the resource file.
extension (NSString)
If extension is an empty string or nil, the extension is assumed not to exist and the file is the first file encountered that exactly matches name.
Return Value
The full pathname for the resource file or nil if the file could not be 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)