Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

iDevCplusplus

macrumors newbie
Original poster
Jan 30, 2010
13
0
I am currently updating my program for Snow Leopard. I get an alert when doing this, it tells me AlertSoundPlay is deprecated, what do I replace AlertSoundPlay with:confused:? Also where can I find reference for deprecated code, so I can updated to newer code.
Thanks:)
 
I am currently updating my program for Snow Leopard. I get an alert when doing this, it tells me AlertSoundPlay is deprecated, what do I replace AlertSoundPlay with:confused:? Also where can I find reference for deprecated code, so I can updated to newer code.
Thanks:)

Seriously, that is lazy. Here is an extract from the relevant header file, with the information you want removed. Took about five seconds to find it. You do know what Spotlight is? Or double-click on AlertSoundPlay, right-click "Show Definition"?



Code:
/* ================================================================================ */
/* Public APIs                                                                      */
/* ================================================================================ */
/*
 *  AlertSoundPlay()   *** DEPRECATED ***
 *  
 *  Deprecated:
 *    Use xxxxxxxxxxxx(). Found in
 *    <xxx/xxx.h>
 
I'm butting in just to say thanks for jared_kipe for posting a helpful answer, as for me reading the header on Xcode 12.5.1 wasn't an option. There is no definition for the old symbol in the old project I'm trying to revive after being dead from around macOS 10.6

And this cartoon:
Some of us are coming from the future, and willfully obfuscating the answer is not appreciated.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.