Re: To get system sounds for Move or Copy operations
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