• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Getting behind NSBeep
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Defaults examples
      • From: "Erik M. Buck" <email@hidden>
    • Re: Getting behind NSBeep
      • From: Andreas Monitzer <email@hidden>
  • Prev by Date: multible NSImages rotated in the same view
  • Next by Date: new to the list - localization
  • Previous by thread: Re: multible NSImages rotated in the same view
  • Next by thread: Re: Getting behind NSBeep
  • Index(es):
    • Date
    • Thread