Hi All,
I wonder if I could get some feedback for this particular problem I have run into using NSTableview. (forever pushing further into Hillegas!!)
My goal was to simply set up a table of an arbitrary number of columns. (No problem here, used IB etc). ( Lets just say it was 11).
My problem was how to get the columns to be of equal width. After some reading ( well...a lot of reading!! ) and some asking on cocoa, the way I came up with was to, in ( the awakeFromNib method) iterate through all the colums setting the maxWidth property of each column.
This works well, unless I minimize the tableview and then, the columns no longer remain equal in width to each other, but the first 2 get disproportionately wider than the rest.
So, my questions are this.
I had expected to set this up in IB, setting some attributes of NSTableView, not expecting to have to do this amount ( admittedly little) coding. Is this the way **real** programmers do it?
From what I can see, each column expects **some** value, as left to itself, some of my columns set their max values to: "(340282306073709652508363335590014353408.000000)"
Lastly, is there an obvious reason as to why the columns get distorted when the entire tableview is "squeezed", for want of a better description.
Thank you as always....
I wonder if I could get some feedback for this particular problem I have run into using NSTableview. (forever pushing further into Hillegas!!)
My goal was to simply set up a table of an arbitrary number of columns. (No problem here, used IB etc). ( Lets just say it was 11).
My problem was how to get the columns to be of equal width. After some reading ( well...a lot of reading!! ) and some asking on cocoa, the way I came up with was to, in ( the awakeFromNib method) iterate through all the colums setting the maxWidth property of each column.
This works well, unless I minimize the tableview and then, the columns no longer remain equal in width to each other, but the first 2 get disproportionately wider than the rest.
So, my questions are this.
I had expected to set this up in IB, setting some attributes of NSTableView, not expecting to have to do this amount ( admittedly little) coding. Is this the way **real** programmers do it?
From what I can see, each column expects **some** value, as left to itself, some of my columns set their max values to: "(340282306073709652508363335590014353408.000000)"
Lastly, is there an obvious reason as to why the columns get distorted when the entire tableview is "squeezed", for want of a better description.
Thank you as always....