Contents

sound(_:didFinishPlaying:)

This delegate method is called when an NSSound instance has completed playback of its sound data.

Declaration

@MainActor optional func sound(_ sound: NSSound, didFinishPlaying flag: Bool)

Parameters

  • sound:

    The NSSound that has completed playback of its sound data.

  • flag:

    True when playback was successful; False otherwise.

See Also

Related Documentation

  • Sound Programming Topics for Cocoa