Re: Double Beep
Re: Double Beep
- Subject: Re: Double Beep
- From: email@hidden
- Date: Thu, 14 Aug 2003 19:12:37 -0700
A simple way for this is to just sleep the thread, but then I end up
with the problem (as you've pointed out) that the delay can be too
long or short.
Is there a way to query the system for the name of the current system
beep sound?
Then I could use NSSound to know when the sound is done playing.
______________________________________________________________________
Previous message from Dave on 8/14/03 at 9:53 PM -0400
**********************************************************************
...
Note that this example will work differently with different alert
sounds (set in the System Prefs, Sound panel). A safe delay for the
NSTimer would be about half a second, but this may sound too long
for other alert sounds (such as Funk, whereas half a second is good
for Blow). You may just want to settle with 0.3, 0.35, or 0.4.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.