I'm trying to decide which path to take for developing my Snow Leopard app. First, I should preface with the obvious differences:
NSTableView can have multiple columns of data for representing different parts of the same "element" of data (a row) where NSCollectionView can display a grid of data as well, but every row+column combo is its own element. For my purposes, assume I'm dealing with a single column.
As far as I can tell, NSCollectionView items are NSViews which all must be of the same dimensions. Also, unlike NSTableView, collectionview items are copied to the NSCollectionView instead of being provided as needed by a dataSource (I'm uncertain about this, please correct me if I'm wrong).
NSTableView uses NSCells if you decide to customize the display of rows. As NSCell isn't an NSResponder, how does one handle events (if I wanted to add some sort of accessory to the cell, like how the Arrows in iTunes work (although, iTunes is Carbon). I've seen some NSCell subclasses in IB which appear to be equivalents of their NSControl brethren, but what if I want to have MySweetView objects in an NSCell?).
Both seem to work about the same with respects to Bindings, correct?
Finally, NSCollectionView appears to play nicely with animation of its elements (for re-arranging items, or filtering them for example). Can NSTableView do this with its rows?
Anything else I should consider?
tableView:didClickTableColumn: in your table view delegate. That method is new in 10.6. You would need to get [NSApp currentEvent], and probably pass it to a method in the column's cell.If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With