NSCollectionView or NSTableView?

276 views
Skip to first unread message

Eimantas Vaičiūnas

unread,
Dec 26, 2010, 3:27:46 AM12/26/10
to cocoa-...@googlegroups.com
Hello list!

I'm trying to mimic custom UITableView cells on my Mac OS X app. There is no decent material on creating custom cells for NSTableView, so I'm mimicking it with NSCollectionView and custom views (max cols - 1). Purpose - a container with list of rows/views representing an array of objects and supported multiple selection.

Here's my dilemma - should I work with NSCollectionView and reimplement all the multiple-selection/delegate methods that NSTableView support or should I hack my way through with trying to implement custom NSCell with custom views for the NSTableView?

I'm looking for some guidelines on how should I tackle this situation.
-- 
All the best,
Eimantas Vaičiūnas

Josh Abernathy

unread,
Dec 26, 2010, 9:50:33 PM12/26/10
to cocoa-...@googlegroups.com
Hi Elimantas,

I recently created JAListView (https://github.com/joshaber/JAListView) for more or less this purpose. The API's a bit different from UITableView but it's more generic.

You should also checkout TDListView (part of TDAppKit at http://code.google.com/p/tdappkit/). It's very similar to UITableView.

Josh

Dave DeLong

unread,
Dec 26, 2010, 10:59:37 PM12/26/10
to cocoa-...@googlegroups.com
You may also want to check out PXListView, available here: https://github.com/Perspx/PXListView

Cheers, 

Dave

Sent from my iPhone
Reply all
Reply to author
Forward
0 new messages