Getting behind NSBeep
Getting behind NSBeep
- Subject: Getting behind NSBeep
- From: Bill Cheeseman <email@hidden>
- Date: Fri, 15 Feb 2002 11:41:35 -0500
It used to be that calling NSBeep() twice in succession played two system
beep sounds in succession. In some recent version of Mac OS X, this broke,
and it now only sounds once.
An Apple engineer told the applescript-users mailing list a while ago that
the same phenomenon observed in recent versions of AppleScript is caused by
two system beeps playing simultaneously -- that is, the second beep doesn't
wait for the first beep to finish.
I assume this is a bug lying somewhere deep in the system, and that it will
be fixed very soon. If I'm wrong about that, I'd like to know it.
In the meantime, is there an easy workaround in Cocoa? I suppose I could use
NSSound to set up one of the system sounds, appoint myself as its delegate,
play it, use a delegate method to find out when it stops playing, then play
it again. Right?
But how do I find out which sound is the user's current system sound?
--
Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
http://www.quecheesoftware.com
The AppleScript Sourcebook -
http://www.AppleScriptSourcebook.com
Vermont Recipes -
http://www.stepwise.com/Articles/VermontRecipes
Croquet Club of Vermont -
http://members.valley.net/croquetvermont
_______________________________________________
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.