Mac OS X Reference Library Apple Developer Connection spyglass button

NSSoundDelegate Protocol Reference

Conforms to
Framework
/System/Library/Frameworks/AppKit.framework
Availability
Available in Mac 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 Mac OS X v10.0 and later.
  • Available as part of an informal protocol prior to Mac OS X v10.6.
Declared In
NSSound.h


Last updated: 2009-04-20

Did this document help you? Yes It's good, but... Not helpful...