Re: Users default alert sound

2016-12-14 Thread Sandor Szatmari
Bonus!  Thanks for sharing!

Sandor

> On Dec 14, 2016, at 17:03, Britt Durbrow 
>  wrote:
> 
> Also, not everyone *has* a sound that plays… if the volume is turned all the 
> way down, or if they have a hearing issue, for example, they will often have 
> the screen flash turned on; calling NSBeep() triggers this correctly.
> 
> 
> 
>> On Dec 14, 2016, at 10:51 AM, Sandor Szatmari  
>> wrote:
>> 
>> I didn't know that automatically played the configured sound.  That's great 
>> thanks!  I knew I was missing something straightforward.
>> 
>> Sandor
>> 
 On Dec 14, 2016, at 12:58, Quincey Morris 
  wrote:
 
 On Dec 14, 2016, at 09:45 , Sandor Szatmari  
 wrote:
 
 I am currently using [NSSound soundNamed:] to play any arbitrary sound.  
 But I want to play the one configured in System Preferences.
>>> 
>>> You can use the NSBeep () global function to play the configured alert 
>>> sound. I don’t know if there’s an API to get its file name — it’s not 
>>> obvious that it is even a separate file, always.
>>> 
>> ___
>> 
>> 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/bdurbrow%40rattlesnakehillsoftworks.com
>> 
>> This email sent to bdurb...@rattlesnakehillsoftworks.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/admin.szatmari.net%40gmail.com
> 
> This email sent to admin.szatmari@gmail.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

Re: Users default alert sound

2016-12-14 Thread Britt Durbrow
Also, not everyone *has* a sound that plays… if the volume is turned all the 
way down, or if they have a hearing issue, for example, they will often have 
the screen flash turned on; calling NSBeep() triggers this correctly.



> On Dec 14, 2016, at 10:51 AM, Sandor Szatmari  
> wrote:
> 
> I didn't know that automatically played the configured sound.  That's great 
> thanks!  I knew I was missing something straightforward.
> 
> Sandor
> 
>> On Dec 14, 2016, at 12:58, Quincey Morris 
>>  wrote:
>> 
>>> On Dec 14, 2016, at 09:45 , Sandor Szatmari  
>>> wrote:
>>> 
>>> I am currently using [NSSound soundNamed:] to play any arbitrary sound.  
>>> But I want to play the one configured in System Preferences.
>> 
>> You can use the NSBeep () global function to play the configured alert 
>> sound. I don’t know if there’s an API to get its file name — it’s not 
>> obvious that it is even a separate file, always.
>> 
> ___
> 
> 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/bdurbrow%40rattlesnakehillsoftworks.com
> 
> This email sent to bdurb...@rattlesnakehillsoftworks.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

Re: Users default alert sound

2016-12-14 Thread Sandor Szatmari
I didn't know that automatically played the configured sound.  That's great 
thanks!  I knew I was missing something straightforward.

Sandor

> On Dec 14, 2016, at 12:58, Quincey Morris 
>  wrote:
> 
>> On Dec 14, 2016, at 09:45 , Sandor Szatmari  
>> wrote:
>> 
>> I am currently using [NSSound soundNamed:] to play any arbitrary sound.  But 
>> I want to play the one configured in System Preferences.
> 
> You can use the NSBeep () global function to play the configured alert sound. 
> I don’t know if there’s an API to get its file name — it’s not obvious that 
> it is even a separate file, always.
> 
___

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

Re: Users default alert sound

2016-12-14 Thread Quincey Morris
On Dec 14, 2016, at 09:45 , Sandor Szatmari  
wrote:
> 
> I am currently using [NSSound soundNamed:] to play any arbitrary sound.  But 
> I want to play the one configured in System Preferences.

You can use the NSBeep () global function to play the configured alert sound. I 
don’t know if there’s an API to get its file name — it’s not obvious that it is 
even a separate file, always.

___

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