There’s nothing wrong with what you posted, so the problem must lie elsewhere. I’m guessing that you forgot to initialize gList. BTW, there’s no reason to use stringWithString like this:
You’re right, I forgot to initialize the list (alloc). I still have to understand what “synthesize” does exactly: it’s just a compiler facility to generate code for setters and getters, it does not initialize anything. Regarding IB objects, they ARE initialized when the nib is loaded. But my list had no blue cube, it’s just a property.
Because some files have “.JPG” extensions (my camera is to blame for this). And because I’m fond of predicates since StefanK told me about these filters.
No, that’s because I don’t read the docs carefully enough, which makes me write a lot of useless code.
Thank you for the subpathsAtPath method! Works fine, I should end with a one-liner.