NSCollectionViewFlowLayout - left alignment
问题 NSCollectionViewFlowLayout produces a layout with items justified on the right margin or, if the container is only wide enough for one item, centres items. I was expecting an alignment option, e.g. on the delegate, but am not finding anything in the docs. Does it require subclassing NSCollectionViewFlowLayout to achieve this? 回答1: Here is a subclass that produces a left justified flow layout: class LeftFlowLayout: NSCollectionViewFlowLayout { override func layoutAttributesForElementsInRect