Skip navigation.
 
mlRe: Table column index
FROM : Quincey Morris
DATE : Mon Feb 25 23:41:30 2008

On Feb 25, 2008, at 14:06, Adam Gerson wrote:

> Those methods return NSInteger's. To get a reference to the
> NSTableColumn you should call something like
>
> int column = [[yourTableView selectedColumn] intValue];
> NSTableColumn myColumn = [[yourTableView tableColumns] 
> objectAtIndex:column];


It looks you're suggesting I send an intValue message to a NSInteger. 
That wouldn't work. :)

What I was asking about is whether (for example, and assuming a column 
is selected)

   [[tableView tableColumns] objectAtIndex: [tableView selectedColumn]]

is in fact the NSTableColumn that's selected. It seems likely, but the 
documentation does not say, that the order of the NSTableColumns in 
[NSTableView tableColumns] is the same as the current visible order of 
the columns in the table.

Related mailsAuthorDate
mlTable column index Quincey Morris Feb 25, 21:46
mlRe: Table column index Adam Gerson Feb 25, 23:06
mlRe: Table column index Quincey Morris Feb 25, 23:41
mlRe: Table column index glenn andreas Feb 26, 00:12
mlRe: Table column index Quincey Morris Feb 26, 01:41
mlRe: Table column index Corbin Dunn Feb 26, 18:13