Game Development Community

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 (-;

#1
02/20/2007 (5:24 pm)
I keep getting a "error: variable declaration is not allowed here" and when I click on it it takes me to line 4253 in OpenTransport.h

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...



#include "platformMacCarb/platformMacCarb.h"


and it should compile just fine.