I am making an application, in which I wan tto somehow use dynamic NSMatrices. Let's just say that I have an NSArray that will hold some NSStrings inside it. We don't know the exact size of the array, so it's impossible to make the NSMatrix with Interface Builder.
The cells will just be switch buttons (although I don't think that this matters to my question so much).
My question is: How can I programmatically create an NSMatrix just using an array of nsstrings (an knowing that the NSbuttonCells will be of the switch buttons size).
I know there are functions that allow me to add and remove cells, but applying them to my code has absolutely no effect. Can anyone give me a brief example?
The cells will just be switch buttons (although I don't think that this matters to my question so much).
My question is: How can I programmatically create an NSMatrix just using an array of nsstrings (an knowing that the NSbuttonCells will be of the switch buttons size).
I know there are functions that allow me to add and remove cells, but applying them to my code has absolutely no effect. Can anyone give me a brief example?