• 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: To get system sounds for Move or Copy operations
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: To get system sounds for Move or Copy operations


  • Subject: Re: To get system sounds for Move or Copy operations
  • From: Uli Kusterer <email@hidden>
  • Date: Tue, 11 Aug 2009 09:10:58 +0200

On Aug 7, 2009, at 7:08 AM, Shashanka L wrote:
Ex: I can get the Trash sound at the location : "/System/Library/ components/coreaudio.component/contents/Resources/SystemSounds/ finder/"
And I can use it as :


	NSSound *deleteSound;
	deleteSound  = [NSSound soundNamed: @"drag to trash"];
	[deleteSound play];

If you can, don't just go playing sounds in other peoples' bundles. These sounds are there for use by Finder. There is no guarantee that they will stay there. Apple might move or remove them from one version of MacOS X to the next.


If you do use this, make sure you write your code so it gracefully copes with these sounds no longer being there.

Cheers,
-- Uli Kusterer
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de





_______________________________________________

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


References: 
 >To get system sounds for Move or Copy operations (From: Shashanka L <email@hidden>)

  • Prev by Date: Re: Color with pattern image
  • Next by Date: Re: Core Data - attribute to hold an array of strings
  • Previous by thread: Re: To get system sounds for Move or Copy operations
  • Next by thread: Outline View DnD
  • Index(es):
    • Date
    • Thread