Talking to iTunes through a COM-like interface?

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

  1. Nitrus macrumors member

    Joined:
    Nov 20, 2009
    #1
    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."

    Anyone?

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

    Joined:
    Oct 13, 2007
    #2
    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

    Joined:
    Aug 9, 2009
    #3
  4. Nitrus thread starter macrumors member

    Joined:
    Nov 20, 2009

Share This Page