• 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
Re: [RS] multiple beepage
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [RS] multiple beepage


  • Subject: Re: [RS] multiple beepage
  • From: Tommy Nordgren <email@hidden>
  • Date: Fri, 22 Dec 2006 15:46:35 +0100


On 22 dec 2006, at 14.35, Roland Silver wrote:

How do I NSBeep N times, with a short but distinct interval of silence between beeps?

--Roland Silver <email@hidden>


_______________________________________________

#include <Carbon/Carbon.h>

void beep_n (int n)
{
	int i;
	for (i = 0; i < n; i++) {
		SysBeep(1);
		if ( i < n-1)sleep (SOMEDELAYTIME);
	}
}
------------------------------------------------------
"Home is not where you are born, but where your heart finds peace" -
Tommy Nordgren, "The dying old crone"
email@hidden


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: [RS] multiple beepage
      • From: Michael Watson <email@hidden>
References: 
 >[RS] multiple beepage (From: Roland Silver <email@hidden>)

  • Prev by Date: Re: [RS] multiple beepage
  • Next by Date: Re: [RS] multiple beepage
  • Previous by thread: Re: [RS] multiple beepage
  • Next by thread: Re: [RS] multiple beepage
  • Index(es):
    • Date
    • Thread