Contents

init(pasteboard:)

Initializes the receiver with data from a pasteboard. The pasteboard should contain a type returned by Nssound. NSSound expects the data to have a proper magic number, sound header, and data for the formats it supports.

Declaration

init?(pasteboard: NSPasteboard)

Parameters

  • pasteboard:

    The pasteboard containing the audio data with which the receiver is to be initialized. The pasteboard must contain a type returned by Nssound. The contained data must have a proper magic number, sound header, and data for the formats the NSSound class supports.

Return Value

Initialized NSSound instance.

See Also

Creating Sounds