MonobjcMonobjc Documented Class Library
PathForSoundResource Method (__target, name)
NamespacesMonobjc.AppKitNSBundle_AppKitAdditionsPathForSoundResource(NSBundle, NSString)

Returns the location of the specified sound resource file.

Original signature is '- (NSString *)pathForSoundResource:(NSString *)name'

Available in Mac OS X v10.0 and later.

Declaration Syntax
C#Visual BasicVisual C++
public static NSString PathForSoundResource(
	this NSBundle __target,
	NSString name
<ExtensionAttribute> _
Public Shared Function PathForSoundResource ( _
	__target As NSBundle, _
	name As NSString _
) As NSString
static NSString^ PathForSoundResource(
	NSBundle^ __target, 
	NSString^ name
__target (NSBundle)
The target instance.
name (NSString)
The name of the sound resource file, without any pathname information. Including a filename extension is optional
Return Value
The absolute pathname of 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), 10.5 (For Mac OS X 10.5 and later)

Assembly: Monobjc.AppKit (Module: Monobjc.AppKit)