Re: Debugging memory leak in NSURLSession with ARC
Re: Debugging memory leak in NSURLSession with ARC
- Subject: Re: Debugging memory leak in NSURLSession with ARC
- From: Mike Abdullah <email@hidden>
- Date: Tue, 13 Jan 2015 15:02:40 +0000
> On 13 Jan 2015, at 13:05, Graham Cox <email@hidden> wrote:
>
>
>> On 13 Jan 2015, at 8:11 pm, Mike Abdullah <email@hidden> wrote:
>>
>> One small suggestion: I think the frameworks would prefer it if you copied the ephemeralSessionConfiguration, and then modified the copy. Modifying this shared config is probably not supported, and while it might work now, might not in future.
>
>
> My reading of the docs is that these convenience methods create new objects, not return shared ones. I'll check again, though.
Upon a re-read, I think you’re probably right. The docs for +defaultSessionConfiguration are certainly clear on the subject, and it seems to reasonable to assume +ephemeralSessionConfiguration follows the same behaviour.
_______________________________________________
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