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 (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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to arch...@mail-archive.com