• 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: "Sean McBride" <email@hidden>
  • Date: Mon, 10 Aug 2009 12:51:41 -0400
  • Organization: Rogue Research Inc.

On 8/7/09 10:38 AM, Shashanka L said:

>Where can I get the system sound for Move/Copy operations?

I don't see anything in the NSSound docs to get that.  It's a good idea
for a feature request though.

>I need to play it in my application when Move or Copy file is done.
>
>
>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];

NSSound initWithContentsOfFile:byReference: should do it.

--
____________________________________________________________
Sean McBride, B. Eng                 email@hidden
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada


_______________________________________________

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

  • Follow-Ups:
    • Re: To get system sounds for Move or Copy operations
      • From: Uli Kusterer <email@hidden>
References: 
 >To get system sounds for Move or Copy operations (From: Shashanka L <email@hidden>)

  • Prev by Date: Re: Implementing key view loop in custom NSView
  • Next by Date: Re: Implementing key view loop in custom NSView
  • Previous by thread: To get system sounds for Move or Copy operations
  • Next by thread: Re: To get system sounds for Move or Copy operations
  • Index(es):
    • Date
    • Thread