+5  A: 

How many item are in the array controller? Your output looks correct for what you've described, assuming there are at least 14 things in the controller (1 view per item). The sizing is just off. It's not clear which problem you're trying to solve.

Perhaps you were looking for a grid, and so need to call setMaximumNumberOfColumns:? Or perhaps your views aren't being resized as you expect (check -maxItemSize and -minItemSize)?

Rob Napier
I forgot to mention that the NSCollectionView resides in a NSScrollView and the scrollbar is set to enable automatically.But as you can see there's no scrollbar. I don't really understand what I need to do so the NSCollectionView knows the size of its NSViews.I hope I made may problem a little clearer.
André Hoffmann
+1. Yes, if you are not getting the layout you expect, you definitely need to call setMinItemSize: and/or setMaxItemSize:. If the minItemSize is {0, 0}, then the collection view will attempt to put all of the views in the visible area and it won't scroll.
kperryua
Thank you. Setting minItemSize resolved my problem.
André Hoffmann
In IB, you can also try turning off the autoresizing springs and struts. I think NSCollectionView uses those as hints to figure out what the default minItemSize and maxItemSize settings should be. If you turn off autoresizing, I'd imagine NSCollectionView would keep the items the same size as the view in IB.
kperryua
Thanks kperryua. I just gave that a try, but unfortunately it didn't work for me.Seems like one has no other choice but to set the minItemSize.
André Hoffmann