Setting Homepage weirdness
Setting Homepage weirdness
- Subject: Setting Homepage weirdness
- From: Mark Thomas <email@hidden>
- Date: Tue, 06 Mar 2007 16:31:03 +0000
- Organization: Coderus Ltd
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