Delay in reading cookie using NSHttpCookieStorage

2011-07-05 Thread Hirendra Rathor
I have written a Cocoa application that uses NSHttpCookieStorage class to read cookie set in the Safari browser. I see that if the time gap between setting the cookie by Safari and the application querying for the cookie is couple of seconds, then the cookie returned by NSHttpCookieStorage is st

Re: Delay in reading cookie using NSHttpCookieStorage

2011-07-06 Thread Fritz Anderson
On 5 Jul 2011, at 7:57 AM, Hirendra Rathor wrote: > I experimented further and waited for few seconds after the 'alert' dialog > box was displayed. Since I did not dismiss the dialog box, my application was > also not launched. After a while I saw the content of the cookie in > Cookies.plist ch

Re: Delay in reading cookie using NSHttpCookieStorage

2011-07-06 Thread Jens Alfke
I don’t think the cookie storage is guaranteed to be 100% in sync across apps all the time. WebKit is probably batching up changes in memory before writing them out to disk. You should probably find a different way to do what you’re doing. Also, launching an applet to launch your app seems cumb

RE: Delay in reading cookie using NSHttpCookieStorage

2011-07-07 Thread Hirendra Rathor
Your problem looks to me like a common use case for the policy hurting functionality. File a bug at bugreport.apple.com and ask that it be changed. [Hirendra] Thanks for taking time to explain. As suggested, I filed a bug (ID: 9735505) at bugreport.apple.com (devforums.apple.com does not disapp

RE: Delay in reading cookie using NSHttpCookieStorage

2011-07-07 Thread Hirendra Rathor
it a try sometime soon. - Hirendra -Original Message- From: Jens Alfke [mailto:j...@mooseyard.com] Sent: Wednesday, July 06, 2011 9:21 PM To: Hirendra Rathor Cc: cocoa-dev@lists.apple.com Subject: Re: Delay in reading cookie using NSHttpCookieStorage I don't think the cookie stora