NSSoundDelegate Protocol Reference

Conforms to
Framework
/System/Library/Frameworks/AppKit.framework
Availability
Available in OS X v10.6 and later.
Companion guide
Declared in
NSSound.h

Overview

The NSSoundDelegate protocol defines the optional methods implemented by delegates of NSSound objects.

Tasks

Playing Sounds

Instance Methods

sound:didFinishPlaying:

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

- (void)sound:(NSSound *)sound didFinishPlaying:(BOOL)finishedPlaying
Parameters
sound

The NSSound that has completed playback of its sound data.

finishedPlaying

YES when playback was successful; NO otherwise.

Availability
  • Available in OS X v10.0 and later.
  • Available as part of an informal protocol prior to OS X v10.6.
Declared In
NSSound.h