> On Sep 23, 2015, at 5:31 PM, Richard Charles <rcharles...@gmail.com> wrote:
> 
> 
>> On Sep 23, 2015, at 5:13 PM, Raglan T. Tiger <r...@crusaderrabbit.net> wrote:
>> 
>> Windows has a Beep function:
>> 
>> BOOL WINAPI Beep(
>> _In_ DWORD dwFreq,
>> _In_ DWORD dwDuration
>> );
>> 
>> Is there anything this easy for OS X?
> 
> void NSBeep (void);
> 
> This is a standard system alert. The term “beep” implies an alert, meaning 
> that developers do not get to choose the frequency and duration on Apple 
> platforms.
> 
> The windows function seems to be misnamed. It should be Tone or Sound or 
> something like that.
> 
> --Richard Charles

OP,

You could create a sound and play it with NSSound.  The sound can be the 
frequency and duration that you want it to be, though you’d have to create the 
sound, such as a .wav file to play it with an NSSound object.

— Kaydell

> 
> 
> _______________________________________________
> 
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
> 
> Please 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:
> https://lists.apple.com/mailman/options/cocoa-dev/kaydell%40yahoo.com
> 
> This email sent to kayd...@yahoo.com


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please 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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to