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 Basic | Visual C++ |
<ExtensionAttribute> _ Public Shared Function PathForSoundResource ( _ __target As NSBundle, _ name As NSString _ ) As NSString
[ExtensionAttribute] public: static NSString^ PathForSoundResource( NSBundle^ __target, NSString^ name )
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)