NSHTTPCookieStorage notification troubles
NSHTTPCookieStorage notification troubles
- Subject: NSHTTPCookieStorage notification troubles
- From: Jacob Bandes-Storch <email@hidden>
- Date: Sat, 22 Dec 2007 21:47:06 -0800
My application needs to observe changes in the shared cookie storage
so it can check if a certain one changed. I've added it as an observer
to the notification with this:
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(updateIDField)
name:NSHTTPCookieManagerCookiesChangedNotification
object:nil];
When I delete a cookie from within my application, Safari gets the
message, and with a refresh or two, it takes effect. However, when a
cookie is added in Safari, it seems unreliable whether or not my
application gets the notification. Does this have something to do with
the suspensionBehavior of the observation, maybe?
_______________________________________________
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