Yes with one caveat.
If you set the Scroll Direction of the NSCollectionView
to Horizontal that will cause the items in the collection view to be laid out in columns rather than rows.
[ 1 ] [ 5 ] [ 9 ]
[ 2 ] [ 6 ] |
[ 3 ] [ 7 ] |
[ 4 ] [ 8 ] V
To do this in Interface Builder 8 select the collection view, open the Attributes Inspector and select Horizontal from the popup button:

You can also achieve the same effect in code by setting the scrollDirection
property on the collection view's layout. N.B. The collection view's layout needs to be NSCollectionViewFlowLayout
NSCollectionViewFlowLayout *flowLayout = [NSCollectionViewFlowLayout alloc] init];
flowLayout.scrollDirection = NSCollectionViewScrollDirectionHorizontal;
NSCollectionView *collectionView = [NSCollectionView alloc] init];
collectionView.collectionViewLayout = flowLayout;
The caveat is that this doesn't work how you might expect with sections. You might expect sections to be stretched out across the view, flowing down the screen and then for items to laid out in columns nested in each section. That is not the case. Sections will become vertical separators and stretch the height of the view and are laid out across the screen along with the items like so:
⌈s⌉ [ 1 ] ⌈s⌉ [ 1 ] [ 5 ]
|s| [ 2 ] |s| [ 2 ] [ 6 ]
|s| [ 3 ] |s| [ 3 ]
⌊s⌋ ⌊s⌋ [ 4 ]