• 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: ICDeletePref ??
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ICDeletePref ??


  • Subject: Re: ICDeletePref ??
  • From: email@hidden
  • Date: Fri, 4 Aug 2006 16:52:41 -0600

On Aug 4, 2006, at 3:09 PM, email@hidden wrote:

On Apr 10, 2006, at 4:01 AM, Quinn wrote:

At 23:57 -0600 7/4/06, J.R. Blackham wrote:
I'm writing a little utility that allows the user to enable/ disable the smb:// url scheme.

In the case of URL scheme helper preferences, IC gateways through to Launch Services. Launch Services has no way to delete a URL scheme helper (other than by removing all the applications that claim this URL scheme), so you get this error.


About the only workaround that I can think of is, to disable the URL scheme, install your own URL scheme handler (that does nothing), and then set that as the default.

You can do this, at least since 10.4, with Launch Services directly.

S+E
--
Quinn "The Eskimo!" <http://www.apple.com/ developer/>
Apple Developer Relations, Developer Technical Support, Core OS/ Hardware

Hi, I had a utility that I was launching from Safari by saying myutil://blah and I was setting the default handler for myutil with ICSetPref(). Now I am trying it in 10.4 and it is failing. When I look at the list of helper apps for myutil in the RCDefaultApp preference pane from:


http://www.rubicode.com/Software/RCDefaultApp

I see that there are 3 apps listed. For instance, the debug version of my app, and another app with a different creator code that I had set before, along with the app I just set.

I tried using ICDeletePref() to just delete the default handler and then install my app with ICSetPref(), but ICDeletePref() no longer works, as answered previously in this thread.

My question is, how do I remove those other apps I am seeing, or how do I set my app as the default, above those other two? Please tell me this is possible through internet config, cuz I am about at the end of my rope as far as APIs getting yanked out from under me :-/

One more thing, I have been playing with the newest version of RCDefaultApp and I can disable the entries for myutil, but I can't choose other ones. I believe that my ~/Library/Preferences/ com.apple.LaunchServices.plist file is corrupted somehow. If I delete the entry for myutil. I have tried throwing away com.apple.LaunchServices.plist but still no change. Is there a central database or utility for all of this where I can delete the entry somehow? Also I am wondering how much the plist of the app plays into all of this. The old app has a CFBundleURLSchemes of myutil even though its creator differs from the app I am trying to set as the default with ICSetPref(). What I mean is, the creators are MYU1 and MUY2 but both have CFBundleURLSchemes of myutil. Thanx,


------------------------------------------------------------------------
Zack Morris              Z Sculpt Entertainment               This Space
email@hidden      http://www.zsculpt.com                 For Rent
------------------------------------------------------------------------
If the doors of perception were cleansed, everything would appear to man
  as it is, infinite. -William Blake, The Marriage of Heaven and Hell


_______________________________________________ Do not post admin requests to the list. They will be ignored. Macnetworkprog mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: ICDeletePref ??
      • From: Ben Artin <email@hidden>
References: 
 >Re: ICDeletePref ?? (From: email@hidden)

  • Prev by Date: Re: Detecting if Admin user
  • Next by Date: Re: ICDeletePref ??
  • Previous by thread: Re: ICDeletePref ??
  • Next by thread: Re: ICDeletePref ??
  • Index(es):
    • Date
    • Thread