Type Method

canInitWithPasteboard:

Indicates whether the receiver can create an instance of itself from the data in a pasteboard.

Declaration

+ (BOOL)canInitWithPasteboard:(NSPasteboard *)pasteboard;

Parameters

pasteboard

Pasteboard containing sound data.

Return Value

YES when the receiver can handle the data represented by pasteboard; NO otherwise.

Discussion

The NSSound method is used to find out whether the class can handle the data in pasteboard.

See Also

Creating Sounds

- initWithContentsOfFile:byReference:

Initializes the receiver with the audio data located at a given filepath.

- initWithContentsOfURL:byReference:

Initializes the receiver with the audio data located at a given URL.

- initWithData:

Initializes the receiver with a given audio data.

- initWithPasteboard:

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.