I'm developing a simple gallery for an application for OS X, by default, the items of a NSCollectionView
are in left, How I get its items centered in its width? like this image:
Asked
Active
Viewed 1,114 times
3

Glorfindel
- 21,988
- 13
- 81
- 109

fenixkim
- 363
- 2
- 14
-
Hey!, I don't know how to do that but I found an useful repo [here](https://github.com/indragiek/OEGridView). This is my [result](http://cl.ly/LlMJ) – fenixkim Dec 21 '12 at 20:22
1 Answers
0
Set up your prototype view to contain an instance of NSImageView (assuming that's what you're using to display your pictures) that's the size of the prototype view itself. Set up the image view so that it resizes with the prototype view. Then, using the Attributes inspector, set the alignment to the center.

Extra Savoir-Faire
- 6,026
- 4
- 29
- 47