Re: Users default alert sound
Re: Users default alert sound
- Subject: Re: Users default alert sound
- From: Quincey Morris <email@hidden>
- Date: Wed, 14 Dec 2016 09:58:53 -0800
- Feedback-id: 167118m:167118agrif8a:167118sdXYrWMHrc:SMTPCORP
On Dec 14, 2016, at 09:45 , Sandor Szatmari <email@hidden> 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 (email@hidden)
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:
This email sent to email@hidden