Re: ICDeletePref ??
Re: ICDeletePref ??
- Subject: Re: ICDeletePref ??
- From: email@hidden
- Date: Sat, 5 Aug 2006 15:42:31 -0600
On Aug 4, 2006, at 5:25 PM, Ben Artin wrote:
As far as I understand things, IC only stores the creator code (or
perhaps the bundle identifier) of a protocol handler, and is
therefore unable to differentiate among multiple copies or versions
of the same app. It always uses the default one, and it gets its
information about which one is default by consulting Launch Services.
You can see what Launch Services thinks about your app by sifting
through the output of:
/System/Library/Frameworks/ApplicationServices.framework/Frameworks/
LaunchServices.framework/Support/lsregister -dump
There is no way to remove an individual entry from the database,
but you can kill the entire database using lsregister -kill, and
you can also force-register a particular copy of an app using
lsregister -f -r.
Cool thanx for the tip! Well when I throw away those other apps in
the finder and empty trash, I see that it removes the myutil entry
from RCDefaultApp. However, when I run my app and use ICSetPref(),
it still fails. It doesn't seem to create the entry in
RCDefaultApp's URL section anymore. However, when I look in the
debugger, I see that calling ICGetPref() before doing anything else,
returns the creator and name of my app! How is this possible? I
found this in google:
http://www.cocoabuilder.com/archive/message/cocoa/2003/5/13/87153
I think the glitch is happening because my app is a package. We
switched from being a resource-based app about a year ago and I guess
this is the first time I am testing my internet config code. Does
anyone know if this is a package problem or a 10.4 problem? BTW I am
using GetCurrentProcess() to get the application's name which I pass
in the ICAppSpec to ICSetPref(), in case the user changed the app's
name. Adding .app on the end makes no difference. Really I think
the name is ignored, but still, I can't figure out why when I
register my creator code, I don't see it in RCDefaultApp. Is there
another routine in IC that registers the full path to a package or
something? Thanx for your help,
------------------------------------------------------------------------
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