As a troubleshooting/understanding experiment, I've set a timer to
send -[NSHTTPCookieStorage cookies] every 3 seconds, to see if the
returned array shows the cookie additions or deletions executed in
Safari.
The result is that, if I do this in a Foundation Tool, the returned
array of cookies changes as expected after a few seconds, but if I
use the exact same code in a Cocoa Application, the returned array
never changes.
Does it have something to do with the run loop?
Thanks,
Jerry Krinock
Note: I tried deleting cookies both by visiting a "logout" web page
(to delete session cookies) and by deleting cookies in Safari's
Preferences. Same result in either case.