Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. COThanks, Adam. I appreciate it. I'm glad that the behavior is to be expected, at least by someone :-). I find it quite strange. It seems to me that each iteration of the `for(id url in urls)` loop should load an image and then animate the presentation of that image regardless of which thread is doing the work. It is not clear to me, either from the code or the `CATransaction` documentation, that the `CATransaction` calls might be ignored. I'll read that documentation more carefully soon though.
      singulars
    2. COI wouldn't say that they're being ignored, but more that they aren't getting a chance to take effect, since the main thread isn't getting a chance to handle other events (such as the animation) until after -addImagesFromFolderURL: returns. This is a common thing to watch out for in Cocoa (and other frameworks): allowing the main thread to resume so that the UI can update and respond to user input.
      singulars
    3. COThank you again! Now that I've finished the Concurrency chapter, however, I have to say that I'm still confused. All images still appear at once, though faster (2.0s vs 3.0s). The UI updates all-at-once as if I've committed only one animation. To me, though, it seems that I've committed multiple animations, one in each pass through the loop. How would I begin to make the images appear one-at-a-time? (I did try moving the `addImagesFromFolderURL` out of `applicationDidFinishLaunching` and instead made it the target of a button. Still had same results.)
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload