accessing iTunes via Applescript while a Cocoa visualization plugin is running
accessing iTunes via Applescript while a Cocoa visualization plugin is running
- Subject: accessing iTunes via Applescript while a Cocoa visualization plugin is running
- From: Christoph Vogelbusch <email@hidden>
- Date: Mon, 8 May 2006 21:00:47 +0200
Hi,
I've written an iTunes Plugin that uses Cocoa (it is playing quartz
composition as visualizations). I followed the carbon cocoa
integration guide and it seemed to work nice at first.
The problem now is that I get mails from people that have problems
with applications that access iTunes via Applescript. It reacts a lot
slower to these applications and irregularly crashes those applications.
The only thing that I'm doing that might be naughty is that I used
"usleep" to reduce the fps. I assumed that this gives back unneeded
time to the cpu and I saw the iTunes plugin seemed to run in a
separate thread according to shark.
Are there any problems known with the Cocoa Carbon integration that
can cause such problems?
What could I look out for? I've double checked the code and didn't
find anything suspicious.
Is usleep a good way to give back time to the system and iTunes or is
there a better way? (I could simply quit my subroutine, but those
calls would create extra load.)
Greeting from Germany
Christoph Vogelbusch
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden