> Yes. I believe there is sample code for this in
>
> http://code.google.com/p/gdata-objectivec-client/
>
> In GDataHTTPFetcher.m
> > Yes. I believe there is sample code for this in
> >
[quoted text clipped - 10 lines]
> itself writes in the NSRequest.h header file that the message
> "setHTTPShouldHandleCookies" is currently not implemented.
I've tested that it does work in 10.4. If you can wait until next month,
when Leopard is expected to be released, you can see what the
NSRequest.h header file says then.
Alexander Clauss - 15 Sep 2007 00:43 GMT
> I've tested that it does work in 10.4. If you can wait until next month,
> when Leopard is expected to be released, you can see what the
> NSRequest.h header file says then.
Yes, it works in 10.4.
But there's still a big problem: All the cookies that are set via
JavaScript in WebView are not covered in this case. I've tried to
hook me into the global Cookie storage by writing a subclass of
NSHTTPCookieStorage and use this class via "poseAsClass" as a substitute
for the global NSHTTPCookieStorage object. But this doesn't really work.
The message "setCookies:forURL:mainDocumentURL:" is the only message
that gets called, but only for a small fraction of the cookies that are
really set and used. So it seems that Apple itself doesn't use the
public API of NSHTTPCookieStorage and instead uses some private API.
So it seems that there's no way to bypass the limitations of the
NSHTTPCookieStorage class of Cocoa by using a subclass or another cookie
storage object.

Signature
Alexander