Results 1 to 2 of 2

Thread: iTunes from C++

  1. #1

    Member Since
    Jul 10, 2008
    iTunes from C++
    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)

  2. #2

    Member Since
    Jul 18, 2008
    Geldern, Northrhine-Westphalia
    Don't know if it's possible with iTunes.

    IOKit/Corefoundation has mechanism to get notified about new and removed devices, but it's Objective C.

    You can find some info in the ADC Reference

    Xcode 2.5 ->> file:///Developer/ADC%20Reference%20Library/documentation/DeviceDrivers/Conceptual/AccessingHardware/AH_Finding_Devices/chapter_4_section_2.html#//apple_ref/doc/uid/TP30000379-TPXREF108

    or as pdf (page 38 - Getting Notifications of Device Arrival and Departure)

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. iTunes Library on a Time capsule - iTunes keeps reverting to default location....
    By grantscooter in forum Music, Audio, and Podcasting
    Replies: 2
    Last Post: 11-02-2011, 09:27 AM
  2. Replies: 6
    Last Post: 05-06-2011, 10:40 AM
  3. iPod Touch 1st Gen Won't Connect To iTunes on PC or MAC - Stuck on iTunes Logo
    By iFixItMan in forum iPod Hardware and Accessories
    Replies: 0
    Last Post: 02-09-2011, 11:52 AM
  4. itunes 8 question (how to removing itunes store link arrows?)
    By the8thark in forum macOS - Apps and Games
    Replies: 3
    Last Post: 09-10-2008, 03:20 PM
  5. iTunes not working at all! (Leopard, latest iTunes, has worked until today)
    By Sorcerer8605 in forum macOS - Apps and Games
    Replies: 3
    Last Post: 11-08-2007, 08:04 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts