Internet Config: Mac OS X 10.3 issue
Internet Config: Mac OS X 10.3 issue
- Subject: Internet Config: Mac OS X 10.3 issue
- From: Stephane Sudre <email@hidden>
- Date: Thu, 12 Feb 2004 12:16:14 +0100
It looks like there's a forward incompatibility issue with Internet
Config on Mac OS X 10.3.
I used to empty an Internet Config preferences using the following code:
-------8<-----------8<-----------8<-----------8<-----------
status=ICStart(&tInstance,'XXXX');
if (status==noErr)
{
status=ICBegin(tInstance,icReadWritePerm);
if (status==noErr)
{
status=ICCountPref(tInstance,&count);
if (status==noErr)
{
long tBufferSize=0;
status=ICGetPref(tInstance,cookiesKey,&tAttributes,NULL,&tBufferSize);
if (status==noErr)
{
Size tSize;
const void * tBuffer;
tBuffer=[nData bytes]; // nData is a NSMutableData initialized with
[NSMutableData dataWithCapacity:1];
tSize=[nData length];
status=ICSetPref(tInstance,cookiesKey,tAttributes,tBuffer,tSize);
}
}
}
}
status=ICEnd(tInstance);
-------8<-----------8<-----------8<-----------8<-----------
It's working fine on Mac OS X 10.1.0 -> 10.2.8.
It's not working on Mac OS X 10.3.x
I haven't seen any release note stating a change was made in IC.
I can of course use ICDeletePref to work around this but is it not a
bug in Internet Config?
_______________________________________________
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.