Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

kpua

macrumors 6502
Jul 25, 2006
294
0
I don't think iPhoto uses NSCollectionView... NSCollectionView is new to Leopard and iPhoto's had its photo viewer for much longer.

However, they work similarly, in that they display a sort of grid view. You provide NSCollectionView a prototype view, and when you hook up appropriate bindings, it will manage copies of that prototype view for each represented object in its content array and display them in the grid. It will also do some automatic animations for you as you add/remove/rearrange items.

There's some good examples of how to use it on developer.apple.com. Look for "IconCollection" and "SourceView"
 

Darkroom

Guest
Original poster
Dec 15, 2006
2,445
0
Montréal, Canada
interesting... thanks...

strange that elements of "sourceView" would make Finder much nicer and that apple hasn't implemented the animations into Finder...

---

so i guess just having a window to drag and drop files onto, and have them line up would require NSMatrix? NSTableView?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.