Talking to iTunes through a COM-like interface?

Discussion in 'Mac Programming' started by Nitrus, Mar 28, 2010.

  1. Nitrus macrumors member

    Nov 20, 2009
    Is there no COM-like interface for cocoa to monitor iTunes in real-time? They offer such an SDK for Windows, which I have used and works flawlessly. I just find it very hard to believe that Apple hasn't added this support to it's own language "COCOA."


    If there was a way to trigger an Applescript on song change, that might be even better.
  2. larkost macrumors 6502a

    Oct 13, 2007
    Inter-app communication is probably best done generically with AppleEvents. AppleScript is a high-level language that sits directly on AppleEvents, but there are Cocoa methods such as NSAppleScript and CocoaScripting. There are also NSDistributedNotifications, but I don't know that iTunes put these out for the events you are looking for.
  3. chown33 macrumors 604

    Aug 9, 2009
    Sailing beyond the sunset
  4. Nitrus thread starter macrumors member

    Nov 20, 2009

Share This Page