Re: Xcode-users Digest, Vol 6, Issue 305
Re: Xcode-users Digest, Vol 6, Issue 305
- Subject: Re: Xcode-users Digest, Vol 6, Issue 305
- From: Νικόλας Τουμπέλης <email@hidden>
- Date: Tue, 23 Jun 2009 14:59:20 +0300
Also, Philip is right - this is probably not the right list for this question.
2009/6/23 Νικόλας Τουμπέλης
<email@hidden>
Hi Eric,
as far as I can tell, iTunes cannot notify any other apps through ScriptingBridge. The generated iTunes.h file does not contain any references to any callbacks that you can use. There may be other ways to do that e.g. notifications and NSDistributedNotificationCenter but I'm not sure whether you can listen to notifications posted by iTunes.
Nick
On Tue, Jun 23, 2009 at 7:44 AM, Eric Lim
<email@hidden> wrote:
Hi
I'm fairly new to Xcode and ObjC, would appreciate some help / pointers in the right direction.
I've written a small app which uses the Cocoa scripting bridge to query iTunes for its current playlist, and presents the entries in a NSTableVIew, letting me play individual tracks from the list when I double click on an entry. So far so good.
If I stop or change the track through this scripting bridge, I will obviously know when a change has occurred. However, how do I know if the track or playlist is changed via iTunes directly? I don't wish to poll iTunes to keep track of its state, if I can possibly avoid it. Is there a way I can be notified of a change in iTunes state?
Cheers for any help,
Eric
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
--
Nick Toumpelis
email:
email@hidden twitter: macsphere
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden