Isak Savo
Isak Savo

Reputation: 35884

Have iTunes inform me when I programmatically sync iphone using COM

I've written an application that synchronizes calendar from Lotus Notes to the iphone (using MS Outlook as conduit) and I want to tell iTunes to push the changes onto the iphone.

I can do this just fine using the COM interface (IITIpodSource.UpdateIpod) but the problem is that this method return immediately when it starts the synchronization. Then iTunes will handle the rest. I want my application to be informed when iTunes has completed the sync so that I can update my GUI accordingly.

So, while iTunes is synchronizing the iphone correctly, my application is never told when it is done. A status flag that I can poll is just as OK as an event by the way...

I can't find anything of help in the documentation. Has anyone ever tried anything like this?

Edit: I tried polling the FreeSpace property but it seems that is updated before the syncing is done (may even be updated several times as far as I can tell)

Upvotes: 2

Views: 669

Answers (1)

Thorsten
Thorsten

Reputation: 13181

Try to do something else directly on the iPod (e.g. create a new playlist - ejection may be a little "too hard" unless you can reinsert the iPod programmatically). At least through the GUI you can only do that when the synch has completed.

Upvotes: 1

Related Questions