• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: iTunes DB Change Notifications?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: iTunes DB Change Notifications?


  • Subject: Re: iTunes DB Change Notifications?
  • From: "I. Savant" <email@hidden>
  • Date: Mon, 27 Jul 2009 13:46:24 -0400

On Jul 27, 2009, at 1:38 PM, Brad Gibbs wrote:

I've looked through the docs and Googled, but may not be looking for the right terms.

Are there change notifications for the iTunes database? I'd like to have an iTunes client on a different machine on the local network be notified of changes, rather than having to poll and reload the database regularly.

Short answer: No.

Long answer: You can get around this, but you won't get instantaneous notifications. iTunes maintains an XML PLIST representation of the database for third-party developers to latch onto for reading only. Using FSEvents for Leopard and above (or UKKQueue for Tiger and before), you can watch this file for changes and respond accordingly.

Caveat: This doesn't work on network volumes. You'll have to have the local machine monitoring for the changes and notifying any interested parties (clients) over the network.

--
I.S.


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: iTunes DB Change Notifications?
      • From: "email@hidden" <email@hidden>
References: 
 >iTunes DB Change Notifications? (From: Brad Gibbs <email@hidden>)

  • Prev by Date: Re: Pop-up Panels?
  • Next by Date: Re: iTunes DB Change Notifications?
  • Previous by thread: iTunes DB Change Notifications?
  • Next by thread: Re: iTunes DB Change Notifications?
  • Index(es):
    • Date
    • Thread