PDA

View Full Version : nshttpcookiestorage for browsers other than safari




McBgnr
May 28, 2009, 04:00 AM
Hello,

I want to check for the presence of a particular cookie in browser cache. I have Firefox installed on my mac in addition to Safari.

The cookie could be present in either of the browsers.

I am able to use NSHTTPCookieStorage class to get the cookie info for Safari, but for FireFox it did not work.
Any suggestions on how I can do this for browsers other than Safari?



Cromulent
May 28, 2009, 04:14 AM
Hello,

I want to check for the presence of a particular cookie in browser cache. I have Firefox installed on my mac in addition to Safari.

The cookie could be present in either of the browsers.

I am able to use NSHTTPCookieStorage class to get the cookie info for Safari, but for FireFox it did not work.
Any suggestions on how I can do this for browsers other than Safari?

You would need to use the methods provided by Firefox as it does not use the same Cocoa APIs and is not a webkit based browser.

McBgnr
May 28, 2009, 04:23 AM
Any pointers or links where I can find the methods provided by FireFox for this purpose?

Do other browsers like IE, iCab, Camino etc also do not use Cocoa API?

Cromulent
May 28, 2009, 04:37 AM
Any pointers or links where I can find the methods provided by FireFox for this purpose?

Do other browsers like IE, iCab, Camino etc also do not use Cocoa API?

Well for a start Internet Explorer has not been available for the Mac for years so no :).

As for the rest you will need to find out yourself, I have no idea. I would recommend reading about Firefox plugins if you want to see what APIs it exposes to developers.