Getting all objects in a document?

I’m really stuck right now with this. I have created several objects with type of ‘IBWindow’, and I need to find a way to get all objects (of that type) in the document, but i have no clue where to start… any ideas?

Cheers
:rabbit: