• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSOperationQueue and for-loop
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: NSOperationQueue and for-loop
      • From: Koen van der Drift <email@hidden>
References: 
 >NSOperationQueue and for-loop (From: Koen van der Drift <email@hidden>)
 >Re: NSOperationQueue and for-loop (From: email@hidden)
 >Re: NSOperationQueue and for-loop (From: Koen van der Drift <email@hidden>)
 >Re: NSOperationQueue and for-loop (From: Koen van der Drift <email@hidden>)
 >Re: NSOperationQueue and for-loop (From: email@hidden)

  • Prev by Date: Re: NSOperationQueue and for-loop
  • Next by Date: Re: NSOperationQueue and for-loop
  • Previous by thread: Re: NSOperationQueue and for-loop
  • Next by thread: Re: NSOperationQueue and for-loop
  • Index(es):
    • Date
    • Thread