• 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: System Sound
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: System Sound


  • Subject: Re: System Sound
  • From: "I. Savant" <email@hidden>
  • Date: Thu, 10 May 2007 11:17:15 -0400

On 5/10/07, Joshua Pennington <email@hidden> wrote:
[[NSSound soundNamed:@"Purr"] play];

This will get you a particular sound, but if you just want to "beep" the user, it's best to use their chosen system beep sound, so NSBeep() is the simplest approach to making sure a) the sound actually exists (the user could've deleted it) and b) the sound is what the user chose as their default beep.

--
I.S.
_______________________________________________

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


References: 
 >System Sound (From: Aaron Wallis <email@hidden>)
 >Re: System Sound (From: "Joshua Pennington" <email@hidden>)

  • Prev by Date: Re: Place for app version value in document wrapper
  • Next by Date: Re: "Select All" first in table view
  • Previous by thread: Re: System Sound
  • Next by thread: Uploaded PMProgressIndicator
  • Index(es):
    • Date
    • Thread