SystemConfiguration not applying settings to current setting..?
SystemConfiguration not applying settings to current setting..?
- Subject: SystemConfiguration not applying settings to current setting..?
- From: "Paul Popovich" <email@hidden>
- Date: Tue, 14 May 2002 13:09:12 -0400
Hey Guys,
I wrote a program that configures a dial-up account over serial link.
It basically reads new settings from an xml file and then uses
SystemConfiguration
framework to store them in preferences.xml and apply them to current
configuration.
The following bizarre behavior is exhibited:
If I open Netwok configuration panel, the new settings are all there and
it everything looks
just fine. When I attempt to close it w/o changing anything, it pops the
following question "do you want to save the current
configuration?" If I chose not to, my network connection fails. If I
manually save them at this point, my network connection
succeeds. Note, the new settings are already written to the panel, but
apparently they're not getting activated.
I'm using standard saving mechanism through SystemConfiguration
framework API.
//make new config settings
if (SCPreferencesSetValue(myPreferenceHandle,
CFSTR("NetworkServices"), cfDictRefMutable) )
{
if
(SCPreferencesCommitChanges(myPreferenceHandle) )
{
if
(SCPreferencesApplyChanges(myPrefHandle) )
{
if
(SCPreferencesUnlock(myPrefHandle) )
}
}
}
Is there some kind of known bug associated with
"SCPreferencesApplyChanges()" call?
Sincerely,
Pavel Popovich.
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.