CocoaDev

Edit AllPages

NSBeep() plays the system beep that the users have defined in the Sound Panel of the System Preferences.

For more complex sound playback, use the NSSound class, CoreAudio, or QuickTime.