• 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
accessing iTunes via Applescript while a Cocoa visualization plugin is running
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: accessing iTunes via Applescript while a Cocoa visualization plugin is running
      • From: Nick Zitzmann <email@hidden>
  • Prev by Date: Re: NSCalendar and the number of days in a week in a month?
  • Next by Date: Re: Refactoring tools available for Cocoa / ObjC?
  • Previous by thread: NSOutlineView and acceptsFirstMouse
  • Next by thread: Re: accessing iTunes via Applescript while a Cocoa visualization plugin is running
  • Index(es):
    • Date
    • Thread