Setting Homepage weirdness
Setting Homepage weirdness
- Subject: Setting Homepage weirdness
- From: Mark Thomas <email@hidden>
- Date: Wed, 07 Mar 2007 15:49:26 +0000
- Organization: Coderus Ltd
Hi,
Didn't hear back on this, did any body had any thoughts on this. I forgot
to mentioned that all my IC calls return noErr and there's no main thread
issues either. This issue only effects 10.4.
Does anybody know who has created the com.apple.internetconfigpriv.plist
?, as testing this on 10.4.x system, it seems like there is a problem
updating the this file with this information.
I guess I can updated this preference myself, but I was expecting
err = ICSetPref ( mICinst, kICWWWHomePage, kICAttrNoChange, theHomePage,
theHomePage[0]+1 );
to work ?, I'm wondering if this has all been depreciated now ?
http://developer.apple.com/documentation/Carbon/Reference/Internet_Config/in
dex.html
As it refer's to now use Launch Services and System Configuration for
managing internet preferences, but so far I haven't seen how to set a
homepage via these frameworks ?, and reading each of these introductions
doesn't give the impression they should be supporting this.
I remember that early 10.1 builds use to have a Internet preference but
that is long gone.
Anybody got any thoughts/ideas.
Thanks
Mark.
-------------------------------------
Hi,
I have some homepage setting code, which seems to work fine by using
ICStart
ICBegin
ICSetPref
ICEnd
ICStop
and this code has been working fine for many years, but recently I was
getting results that it doesn't seem, or sometimes have a 50% success rate
depending on a number of factors e.g. Safari in dock, or running safari when
my application is still running.
My initial thoughts it must have been user error, but on further
examination, there does seem to be a problem.
The above calls seem to update a preference file called
"com.apple.internetconfig.plist", and every time the code runs I get a 100%
successful change in that file.
However there seems to be another preference file
"com.apple.internetconfigpriv.plist", which seems to hold the true homepage
what Safari actually uses, and when my code doesn't work (i.e. Safari
doesn't show the updated homepage) I see a miss match in the values of the
homepage values between the 2 preference files.
Can anybody shed any light on why this extra preference file is here and
why it doesn't was to reflect what I'm requesting.
One thought is do these API's have a thread dependency ?, as these API are
called using the WebKit Cocoa Javascript bridge. Which might explain why it
seems a little hit & miss ?, but I think I'm in the main thread as my Cocoa
GUI code seems to be working fine.
Thanks
Mark.
_______________________________________________
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