Trivial in-game iTunes support for OSX
by Gary "ChunkyKs" Briggs · 01/31/2007 (2:41 pm) · 1 comments
Download Code File
There's two code files in the attached file. The first is a C++ file that you can just add to your build. I suggest putting it only in platformMacCarb, since it's mac-specific.
The second file is a torque .gui file. It, also, is trivial, and mostly presented as an example. Just exec() it, and use a console command like canvas.pushDialog(iTunes) to make it appear.
The IPC method isn't great [system("osascript yada yada")], but it's one I found on apple's developer website, and it's pretty bulletproof. There will be a minor "command lag" using it, but in my experience that's pretty common among applications with external iTunes interfaces
Gary (-;
There's two code files in the attached file. The first is a C++ file that you can just add to your build. I suggest putting it only in platformMacCarb, since it's mac-specific.
The second file is a torque .gui file. It, also, is trivial, and mostly presented as an example. Just exec() it, and use a console command like canvas.pushDialog(iTunes) to make it appear.
The IPC method isn't great [system("osascript yada yada")], but it's one I found on apple's developer website, and it's pretty bulletproof. There will be a minor "command lag" using it, but in my experience that's pretty common among applications with external iTunes interfaces
Gary (-;
About the author
Recent Blogs
• ODEScript... Juggling• More ODEScript Goodies
• ODEScript Demo
• ODEScript Physics
• Juggling Again!
Torque Owner Gonzo T. Clown
void* operator new(size_t);
Anyone else have this problem?
EDIT: Fix for this issue is to add the following line at the very top of the file...
and it should compile just fine.