PDA

View Full Version : NSCollectionView




func
Jul 6, 2009, 09:39 AM
I'm developing a map editor for a simple tile-based game.

Right now I'm trying to use a NSCollectionView as a grid containing all the tiles. The problem is that the collectionview seams to arrange the collection items more like a list rather than like a grid. And if the tiles gets resized the view automatically rearranges the tiles, with animations. I need the tiles position to be static.

Is there a way to turn off animations in NSCollectionView?

Is the whole idea with using a NSCollectionView for a tile-based view a bad idea? What are the alternatives?

Thanks!



GorillaPaws
Jul 6, 2009, 09:43 AM
Have you tried creating an NSMatrix of your views?