I am trying to decide which way to develop my Snow Leopard application. First, I must point out the obvious differences:
NSTableView
can have multiple data columns to represent different parts of the same data "element" (row), where NSCollectionView
can also display a data grid, but each combination of columns and columns is its own element. For my purposes, suppose I am dealing with a single column.
As far as I can tell, NSCollectionView
are NSCollectionView
elements that should be the same size. In addition, unlike NSTableView
collection elements are copied to the NSCollectionView
instead of being provided as needed by the dataSource
(I'm not sure about this, please correct me if I am wrong).
NSTableView
uses NSCell
if you decide to customize the display of rows. Since NSCell
not an NSResponder
, how to handle events (if I wanted to add some kind of accessory to a cell, for example, how arrows work in iTunes (although iTunes is Carbon). Some NSCell
subclasses in IB that seem to be equivalent to their NSControl
marriages, but what if I want to have MySweetView
objects in NSCell
?).
Both seem to work roughly the same with respect to Bindings, right?
Finally, NSCollectionView
seems to play great with animating its elements (for re-arranging elements or filtering them, for example). Can NSTableView
do this with its own rows?
Anything else I should consider?
source share