[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Obj-C, Handling the sound attribute of a button - SOLVED
From: |
Csanyi Pal |
Subject: |
Re: Obj-C, Handling the sound attribute of a button - SOLVED |
Date: |
Sun, 03 Oct 2010 15:09:14 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) |
"Nicola Pero" <nicola.pero@meta-innovation.com> writes:
> Btw, my guess is that this has nothing to do with Renaissance. The
> problem is that
>
> [NSSound soundNamed: @"GombHangja_Magas.wav"];
>
> does not work (ie, returns 'nil') when the sound is a local file
> inside the application bundle. It should be easy to write a short
> test and check.
The following code solve my problem:
[code]
NSSound *DPBin = [NSSound soundNamed: @"DPBin.wav"];
[DPBin play];
[/code]
--
Regards, Paul Chany
<http://www.debian.org> <http://wiki.debian.org/DebianEdu>
<http://sourceforge.net/projects/lptinterface/>
<http://csanyi-pal.info>
- Re: Obj-C, Handling the sound attribute of a button - SOLVED,
Csanyi Pal <=