
07-13-2008, 01:39 AM
|
 |
What's Jailbreak?
|
|
Join Date: Jun 2008
Device + Firmware: iPhone 3G 16GB (2.0)
Operating System: Macbook Pro - OSX Leopard (10.5)
Posts: 26
Thanks: 1
Thanked 2 Times in 2 Posts
|
|
|
Having a button play a sound.
|
Hello.
I would really appreciate help with this as it is boggling my mind for almost a week now.
Ok, so, I am trying to have this button play a sound when clicked. I just have no idea how to do this.
I mean I know basics and stuff.
In Interface Builder:
Pretty much, what I have set up is Button connected to an object called sounds. Then, the event chosen is called "playsound1".
I wrote the class files, put them in the classes folder. and now I'm staring at the sounds.h and sounds.m in Xcode, with no idea what to do.
I was able to create a simple "Beep app" for REGULAR Cocoa using NSBeep. I just don't know how I can create an app that has this button that plays a given sound file in the app's filesystem.
As always, thanks so much for all the help!
|
|