Re: mutableBytes Creates Autoreleased Objects
Re: mutableBytes Creates Autoreleased Objects
- Subject: Re: mutableBytes Creates Autoreleased Objects
- From: Charles Srstka <email@hidden>
- Date: Sat, 12 May 2012 15:12:54 -0500
On May 12, 2012, at 2:31 PM, Quincey Morris wrote:
> On May 12, 2012, at 10:18 , Charles Srstka wrote:
>
>> Ugh, so you’re saying that ARC isn’t actually as deterministic as we’ve been led to believe?
>
> Indeterminism isn't the problem. Unmarked interior pointers *are*.
But if the behavior is deterministic, you can predict where the NSMutableData will get dealloced, and so you’ll know for sure how long the interior pointer will be valid.
Charles
_______________________________________________
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