Re: Lifecycle for custom NSURLProtocol properties

2016-09-27 Thread Jens Alfke

> On Sep 26, 2016, at 10:42 PM, Allan Odgaard  
> wrote:
> 
> I am making use of NSURLProtocol’s `setProperty:forKey:inRequest:` but it 
> seems that my custom properties outlive the URL request, and even if I 
> explicitly call `removePropertyForKey:inRequest:` after my request is done, 
> it would appear that my properties are still being retained by something.

Are they actually getting leaked? Does the memory usage of these values keep 
increasing over time?

> I guess this is a bit of a black box, but does anyone have any 
> info/experience with this?

I’d recommend asking on the macnetworkprog list; there are more folks there 
(including Quinn) who might now for sure.

—Jens
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Lifecycle for custom NSURLProtocol properties

2016-09-26 Thread Allan Odgaard
I am making use of NSURLProtocol’s `setProperty:forKey:inRequest:` but 
it seems that my custom properties outlive the URL request, and even if 
I explicitly call `removePropertyForKey:inRequest:` after my request is 
done, it would appear that my properties are still being retained by 
something.


I guess this is a bit of a black box, but does anyone have any 
info/experience with this?

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com