I found this code, online - and it seems like it would do what I want. that is clear the NSHTTPCookieStorage immediately. However it wont compile?
It gives me the error:
heres the code:
Im still learning cocoa, and I cant get my head around this, does anyone know what going wrong here?
I am compiling for Leopard
thanks in advance
It gives me the error:
Code:
error Ivar undeclared, error ivar undeclared
heres the code:
Code:
Ivar ivar;
void* internal = NULL;
ivar = object_getInstanceVariable(storage, "_internal", &internal);
if (internal) {
void* diskStorage = NULL;
ivar = object_getInstanceVariable((id)internal, "storage", &diskStorage);
if (diskStorage) {
objc_msgSend(diskStorage, @selector(_saveCookies));
}
}
Im still learning cocoa, and I cant get my head around this, does anyone know what going wrong here?
I am compiling for Leopard
thanks in advance