Re: Dumb ARC question
Re: Dumb ARC question
- Subject: Re: Dumb ARC question
- From: Quincey Morris <email@hidden>
- Date: Fri, 28 Dec 2012 00:59:21 -0800
On Dec 27, 2012, at 22:37, Rick Mann <email@hidden> wrote:
> So, the usual bit about references being weak by default in C structs (and C++ classes) doesn't hold here.
Huh? References aren't weak by default anywhere.
Are you thinking of __usafe_unretained? That's not weak, just unmanaged by ARC, and it's the only ownership qualifier allowed by ARC for struct members that point to objects (and therefore highly unrecommended).
For your original problem, your description is consistent with ARC *not* being used to compile this source file. You can check that easily enough by putting:
> mInputBuffer = [[NSMutableData data] retain];
and verifying that the compiler says you can't do that when ARC is turned on.
_______________________________________________
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