Re: setting table view rows and columns?

2015-03-13 Thread Patrick J. Collins
Normally you just set up the column titles in IB. The titles are actually the tableColumn.headerCell.stringValue property, displayed in a NSTableHeaderView. If you are setting these programmatically, you should probably do tat as part of the table controller's setup, not every time the

Re: setting table view rows and columns?

2015-03-13 Thread Graham Cox
On 13 Mar 2015, at 5:26 pm, Patrick J. Collins patr...@collinatorstudios.com wrote: I cannot figure out how to do this in IB.. I went into the View Controller Scene, and found my table view, selected nested table cell view for a column.. Double clicked on the cell, and typed the header

Re: setting table view rows and columns?

2015-03-13 Thread Steve Mills
On Mar 13, 2015, at 02:18:00, Patrick J. Collins patr...@collinatorstudios.com wrote: The inspector shows the text set under 'Title', yet when I build, there is no text.. it's all blank.. Quite frustrating. You're sure you have an NSTableColumn selected, not Table View Cell that's in the

Re: setting table view rows and columns?

2015-03-13 Thread Patrick J. Collins
Yeah I did that.. Just double-click the column header title and type in the title you want. Or select the table column in the hierarchical view and enter text in the Title field of the editor panel. The inspector shows the text set under 'Title', yet when I build, there is no text.. it's

Re: setting table view rows and columns?

2015-03-13 Thread Keary Suska
On Mar 13, 2015, at 1:29 AM, Steve Mills sjmi...@mac.com wrote: On Mar 13, 2015, at 02:18:00, Patrick J. Collins patr...@collinatorstudios.com wrote: The inspector shows the text set under 'Title', yet when I build, there is no text.. it's all blank.. Quite frustrating. You're sure

Re: setting table view rows and columns?

2015-03-13 Thread Patrick J. Collins
Also make sure that that headers is checked in the table view attributes inspector, or the headers won't be exposed to set in the first place. aargh! Totally missed that checkbox, and yeah that was my problem!!! thanks! Patrick J. Collins http://collinatorstudios.com

Re: setting table view rows and columns?

2015-03-12 Thread Graham Cox
On 13 Mar 2015, at 2:10 pm, Patrick J. Collins patr...@collinatorstudios.com wrote: am a little confused with the documentation for NSTableViews... I assume this is the method that one uses to set the headers of the table? - (void)tableView:(NSTableView *)tableView

setting table view rows and columns?

2015-03-12 Thread Patrick J. Collins
Hi everyone, I am a little confused with the documentation for NSTableViews... I assume this is the method that one uses to set the headers of the table? - (void)tableView:(NSTableView *)tableView setObjectValue:(id)object forTableColumn:(NSTableColumn *)tableColumn row:(NSInteger)row;