• 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
Re: Prevent DVD Player launch
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Prevent DVD Player launch


  • Subject: Re: Prevent DVD Player launch
  • From: Craig Hopson <email@hidden>
  • Date: Thu, 2 Nov 2006 08:35:58 -0700


On Nov 1, 2006, at 4:55 PM, Ricky Sharp wrote:


On Nov 1, 2006, at 5:41 PM, Craig Hopson wrote:

This is not specifically a cocoa question, but it did come up when playing with the CocoaDVDPlayer example, and I happen to subscribe to this list...

Does anyone know how to prevent Apple's DVD Player from launching when a DVD is inserted? We are working on something that is based on the CocoaDVDPlayer sample code. However, when a DVD is inserted, Apple's DVD Player auto launches. If it cannot grab the DVD services it posts an error and quits. So, I know that by using Default Apps I can change that behavior. But, is there a programmatic way, maybe by accessing the launch services database, to temporarily remove DVD Player (if it's configured that way) and then restore the setting?

What app is launched is controlled by the "CDs & DVDs" system preferences.

Yes, I understand that.

I suppose you could change those prefs when your app is run, but that seems a bit unpleasant to me. Perhaps you could have your users configure that setting appropriately?

I guess my question was not quite clear - I need to do this programmatically and not involve the users. I do have one solution... com.apple.digihub.plist holds this setting; I could temporarily change the value in that file. Does anyone know of a better way to do this?


Thanks.
Craig Hopson
Red Rock Software

***************************************************
"If every household in the U.S. replaced one light bulb with an ENERGY STAR qualified compact fluorescent light bulb (CFL), it would prevent enough pollution to equal removing one million cars from the road." http://www.energystar.gov/index.cfm?c=cfls.pr_cfls


_______________________________________________
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: Prevent DVD Player launch
      • From: Steve Christensen <email@hidden>
References: 
 >Prevent DVD Player launch (From: Craig Hopson <email@hidden>)
 >Re: Prevent DVD Player launch (From: Ricky Sharp <email@hidden>)

  • Prev by Date: Re: Simulate Photoshop's "Overlay" compositing method
  • Next by Date: Pointers and NSImages
  • Previous by thread: Re: Prevent DVD Player launch
  • Next by thread: Re: Prevent DVD Player launch
  • Index(es):
    • Date
    • Thread