• 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: At my wits end with NSSound!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: At my wits end with NSSound!


  • Subject: Re: At my wits end with NSSound!
  • From: Mike Brinkman <email@hidden>
  • Date: Wed, 11 Feb 2004 08:32:16 -0500

I've tried dropping a system sound on a button in a new app in IB, and
indeed there's a delay there too the first time. Of course I only tested the
interface, not compiled the program. It didn't seem necessary.

But this does raise an interesting point:

When I call > mySound = [[NSSound soundNamed:@"aSound"] retain]; is the
retain actually necessary? I thought it would be, since the sound may play
more than once. I was told that soundNamed also automatically allocs &
deallocs the sound for me.

Danke, Peter!

On 2/11/04 3:32 AM, "email@hidden"
<email@hidden> wrote:

> What happens when you test it directly with a new app just having a window
> with one button in it? Move your AIFF sound file into the sound pane of
> mainMenu.nib and confirm the Add. Then move the sound from there onto the
> button. Run the IB and click the button, should sound. Compile and run, should
> sound too. By the way: I use a line like yours in my code but without reatain.
> Cheers Peter
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: At my wits end with NSSound! (From: email@hidden)

  • Prev by Date: Re: At my wits end with NSSound!
  • Next by Date: Re: At my wits end with NSSound!
  • Previous by thread: Re: At my wits end with NSSound!
  • Next by thread: Re: At my wits end with NSSound!
  • Index(es):
    • Date
    • Thread