Initializes the receiver with the audio data located at a given URL.
Original signature is '- (id)initWithContentsOfURL:(NSURL *)fileUrl byReference:(BOOL)byRef'
Available in Mac OS X v10.0 and later.

Declaration Syntax
public virtual Id InitWithContentsOfURLByReference(
NSURL fileUrl,
bool byRef
)
Public Overridable Function InitWithContentsOfURLByReference ( _
fileUrl As NSURL, _
byRef As Boolean _
) As Id
public:
virtual Id^ InitWithContentsOfURLByReference(
NSURL^ fileUrl,
bool byRef
)

Parameters
- fileUrl (NSURL)
- URL to the sound file with which the receiver is to be initialized.
- byRef (Boolean)
- When YES only the name of the sound is stored with the NSSound instance when archived using encodeWithCoder:; otherwise the audio data is archived along with the instance.

Return Value
Initialized NSSound instance.

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)