How to loop through an objects layer of a specific type in Tiled?

I’ve got an objects layer in Tiled, and I’ve assigned a few objects a specific type.
In this case I’ve assigned them a type of “block”.
I want my player to collide with these “blocks”.

The thing I need help on, is how to loop through the object layer and only loop through objects of type “block” ?

Does anyone know?
I’ll try to explain it with more information

I’ve got a tiled map that I made in Tiled (.tmx).

I have numerous objects in my tiled map with a type: “block”.

I want to be able to get all of those “block”s and say:
“For each block in my tiled map, doThis() with it”

Anyone know?

I know how to get one block:

CCStringToStringDictionary **block = objects->objectNamed;
CCAssert;

However that just gets a single block, and it’s only looking by name.
I want it so, it looks for every object in my objects layer in tiled with type “block”
**Note:* I’m using win32

Does no one know?
Surely someone has used Tiled before?