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

[SOLVED] At my wits end with NSSound!


  • Subject: [SOLVED] At my wits end with NSSound!
  • From: Mike Brinkman <email@hidden>
  • Date: Wed, 11 Feb 2004 12:11:37 -0500

John and all,

I would like to thank everybody who has been kind enough to reply & give
suggestions. This will be my last response to this subject, since I now have
a working solution. I hope I didn't come across as being unappreciative for
any of your suggestions. I replied to most of the other suggestions
primarily for the benefit of people who may be searching the list in the
future.

I have decided to download John's "silent" sound (instead of buying a silent
track of iTMS as was suggested by someone else ;-), and I converted it to an
11.025 KHz 8 Bit Mono sound, which now uses only 4K. John & others might
want to do the same, it is just silence after all.

Now if only I could figure out why NSIntersectsRect doesn't always work,
I'll be able to move on with new projects. Thanks again everybody!

Mike

On 2/11/04 12:01 AM, "John Pannell" <email@hidden> wrote:

> Hi Mike-
>
> I have also been bothered by the delay; here's what I did to clear it
> up:
>
> 1. Make a "silent" sound. You can download mine (30K) at:
> http://www.positivespinmedia.com/silent.aiff
>
> 2. Add it to the "Resources" folder of your project by selecting the
> folder in XCode/PB and choosing "Add Files..." from the Project menu.
>
> 3. In some early method of your app, add a line to play the silent
> sound. I used my controller object, which is a delegate for NSApp, and
> added this line to the applicationDidFinishLaunching:
> method, which is called when the application did finish launching
> (hence the name :-)
>
> // wake up the sound system
> [[NSSound soundNamed:@"silent"] play];
_______________________________________________
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.

  • Prev by Date: Re: [Slightly OT] Shareware donation collection
  • Next by Date: NSScreenSaverWindowLevel
  • Previous by thread: Re: Re-enabling Expose for certain windows
  • Next by thread: NSScreenSaverWindowLevel
  • Index(es):
    • Date
    • Thread