[SOLVED] At my wits end with NSSound!
[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.