0
votes

How to achieve a similar iTunes artists view like effect where all objects are concentrated in one row of a NSTableView just like this image:

enter image description here

So far I've achieved the same effect by adding an object named "all objects" and monitoring if the user has selected the first index of the table view, but it seems like poor practice since I'm even repeating the values inside the "all objects" index.

Is there an out of the box way of doing this or I should subclass NSArrayController? Thanks in advance for all the help

1
"All Artists" is just one thing. It doesn't really magically contain all artists. - matt
But in case of using a NSArrayController, how to change only this one thing? - Bruno Vieira
The first thing in the array is the thing called "All Artists". It doesn't have to do anything until the user taps it. - matt
Suppose I have an array that goes "All Composers", "Beethoven", "Bach", "Mozart". Throw an array controller and a table view at it and you're done. Why is there a problem? - matt
So there is no better way than adding an item named "All Objects" to the NSArrayController before displaying it (which I'm already doing)? - Bruno Vieira

1 Answers

0
votes

I would try subclassing NSTableViewCell and dynamically add whatever content you want to that cell as you populate the table.