Re: NSOperationQueue and for-loop
Re: NSOperationQueue and for-loop
- Subject: Re: NSOperationQueue and for-loop
- From: Koen van der Drift <email@hidden>
- Date: Tue, 02 Oct 2012 22:30:02 -0400
On Oct 2, 2012, at 9:21 PM, email@hidden wrote:
> Only variables that are being modified by the block need to be declared with the __block specifier. You shouldn't be declaring the underlying instance variables as __block. You can mix and match ARC and non-ARC code. Google should help you figure out how to do that as I can't give specific instructions off the top of my head.
Thanks, I'll Google for some examples. For now, I still get an EXC_BAD_ACCESS (code=13, address = 0x0) error in one of the threads after several iterations. Some more digging reveals:*** -[MyObject setPosition:]: message sent to deallocated instance 0x1075a6480. This address is the current MyObject, and only one is created during each iteration.
It's all very confusing still. I'll keep looking.
- Koen.
_______________________________________________
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