• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Overriding NSHTTPCookieStorage for WebView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Overriding NSHTTPCookieStorage for WebView


  • Subject: Re: Overriding NSHTTPCookieStorage for WebView
  • From: "Mr. Gecko" <email@hidden>
  • Date: Mon, 29 Dec 2008 16:48:48 -0600

Ok I finally got it together, the problem I'm having now is that WebView calls [NSHTTPCookieStorage(NSPrivate) _cookieStorage] and than goes to debugger.
I know it works because I tried NSLog(@"%@", [[NSHTTPCookieStorage sharedHTTPCookieStorage] cookies]); and it outputs an empty array like I had it to. and when I add a cookie it outputs that cookie in the array.


On Dec 29, 2008, at 1:39 PM, Andy Lee wrote:

You need to look more closely at the docs for +poseAs:.

--Andy

On Dec 29, 2008, at 12:19 PM, Mr. Gecko wrote:

when I change it from NSObject to NSHTTPCookieStorage it says this
objc[87581]: MYHTTPCookieStorage: [MYHTTPCookieStorage poseAs:NSHTTPCookieStorage]: MYHTTPCookieStorage defines new instance variables


On Dec 29, 2008, at 10:57 AM, Mike Abdullah wrote:

Perhaps you could explain why you've felt the need to write a custom cookie storage system? I think it would help us figure the best solution. Bear in mind that NSHTTPCookieStorage's design is quite complicated in that it synchronises with all instances in other apps.

Mike.

On 29 Dec 2008, at 01:52, Mr. Gecko wrote:

Hello, I'm trying to make my own cookie storage system for WebView and to do that I've found that I need to override NSHTTPCookieStorage but when I do that how can I make webview use my overridden one?
I've already wrote the cookie system, following the rules of cookie security and all, I just need to get this working...


Thanks for the help,
Mr. Gecko
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com


Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Overriding NSHTTPCookieStorage for WebView (From: "Mr. Gecko" <email@hidden>)
 >Re: Overriding NSHTTPCookieStorage for WebView (From: Mike Abdullah <email@hidden>)
 >Re: Overriding NSHTTPCookieStorage for WebView (From: "Mr. Gecko" <email@hidden>)
 >Re: Overriding NSHTTPCookieStorage for WebView (From: Andy Lee <email@hidden>)

  • Prev by Date: Re: Quartz Bindings
  • Next by Date: Re: Very strange behaviour of NSCollectionView
  • Previous by thread: Re: Overriding NSHTTPCookieStorage for WebView
  • Next by thread: IKImageBrowserView and the View Hierarchy
  • Index(es):
    • Date
    • Thread