Re: ICDeletePref ??
Re: ICDeletePref ??
- Subject: Re: ICDeletePref ??
- From: email@hidden
- Date: Fri, 4 Aug 2006 15:09:00 -0600
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 :-/
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