I am trying to port a Trolltech QT application written in C++ to Mac which works fine on the PC. The UI portion ported very easily but now trying to interface to iTunes has become a problem.
The application interfaces with iTunes to simply detect whether an iPod is connected or not. On the PC there are functions in the COM interface to query if an iPod is connected and then events to detect when it is removed or another is added.
The Apple supplied demo shows using system calls to start AppleTalk scripts that control iTunes. For me there are 2 problems with this solution, 1) its one way communication, i need to also be notified by iTunes and 2) it feels error prone (of course maybe this is a common practice on the mac in which case i will gladly use it).
I guess I'm just wondering if someone could give me some hints on how I should go about talking to iTunes in a C++ Mac Osx application. (10.5 is going to be the required version if that helps)
The application interfaces with iTunes to simply detect whether an iPod is connected or not. On the PC there are functions in the COM interface to query if an iPod is connected and then events to detect when it is removed or another is added.
The Apple supplied demo shows using system calls to start AppleTalk scripts that control iTunes. For me there are 2 problems with this solution, 1) its one way communication, i need to also be notified by iTunes and 2) it feels error prone (of course maybe this is a common practice on the mac in which case i will gladly use it).
I guess I'm just wondering if someone could give me some hints on how I should go about talking to iTunes in a C++ Mac Osx application. (10.5 is going to be the required version if that helps)