CocoaDev

Edit AllPages

Sound is a useful way to communicate with the user. But, of course, it can be overdone.

To programmatically sound a system beep, type…

NSBeep();

In Interface Builder, you can also assign a slew of system beeps to buttons and actions. Check it out.

Back to HowToProgramInOSX