• 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
Best Strategy to Control iTunes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Best Strategy to Control iTunes


  • Subject: Best Strategy to Control iTunes
  • From: Ammar Ibrahim <email@hidden>
  • Date: Mon, 30 Mar 2009 19:03:10 +0300

I'm currently developing an App in iTunes, and I'm new to Cocoa and the
entire Mac development world. So far, things are looking great. I have few
questions, about which is the best strategy to follow in order to accomplish
some tasks. This is a special purpose app, in a controlled environment.

* Open iTunes if it's not already open.
      - Is using NSWorkSpace the best way to launch iTunes? Or should I use
a different method? What ar the side effects if the application was already
running?
      - How can I detect if iTunes is not responding? I'd like to force quit
it, and open it again
      - In a nutshell, I'd like iTunes to be open all times, and responsive,
how can I guarentee this?

* Communcation with iTunes
      - What's the best interface to use? Running Apple Script through osa
(by shell invocation) inside my app? AppleScript-Cocoa bridge? Any other
methods?
      - It's known that if any dialog is open in iTunes it freezes any
communication through the scriptable interface, how can I detect that and
put all my "messages" in a queue, so that when iTunes is responsive, I can
send my messages?


Thanks in advance,
Ammar
_______________________________________________

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: Best Strategy to Control iTunes
      • From: Mark Suman <email@hidden>
    • Re: Best Strategy to Control iTunes
      • From: "Luca C." <email@hidden>
  • Prev by Date: Re: Properties and the runtime
  • Next by Date: Re: Best Strategy to Control iTunes
  • Previous by thread: MySQL-Cocoa database access
  • Next by thread: Re: Best Strategy to Control iTunes
  • Index(es):
    • Date
    • Thread