nshttpcookiestorage for browsers other than safari

Discussion in 'Mac Programming' started by McBgnr, May 28, 2009.

  1. macrumors regular

    Joined:
    Apr 13, 2009
    #1
    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?
     
  2. macrumors 603

    Cromulent

    Joined:
    Oct 2, 2006
    Location:
    The Land of Hope and Glory
    #2
    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.
     
  3. thread starter macrumors regular

    Joined:
    Apr 13, 2009
    #3
    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?
     
  4. macrumors 603

    Cromulent

    Joined:
    Oct 2, 2006
    Location:
    The Land of Hope and Glory
    #4
    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.
     

Share This Page