What is the best GUI element that will work as a container for views? I will have number of views (say 50), all of them the same but I want to remove and add them at runtime. I’m looking for something like a table but with single column and changable number or rows.
Share
NSCollectionViewor (since OS X 10.7)NSTableVieware the appropriate classes for such a task. Simply bind them to an NSArrayController.While
NSCollectionViewrequires all contained views to share the same dimensions,NSTableViewallows variable heights.Oh, and last but not least there of course also is the 3rd party class
PXListView.You might also want to check out this answer on a related question: custom list control in cocoa