Re: Table column index

2008-02-26 Thread Corbin Dunn
On Feb 25, 2008, at 4:41 PM, Quincey Morris wrote: On Feb 25, 2008, at 15:12, glenn andreas wrote: And it actually hints to the contrary, since -tableColumns is document to include the hidden columns as well (and doesn't say if they are at the end or in the middle) I just tried it, and

Re: Table column index

2008-02-25 Thread Quincey Morris
On Feb 25, 2008, at 15:12, glenn andreas wrote: And it actually hints to the contrary, since -tableColumns is document to include the hidden columns as well (and doesn't say if they are at the end or in the middle) I just tried it, and the column numbers seem to match up with the array i

Re: Table column index

2008-02-25 Thread glenn andreas
On Feb 25, 2008, at 4:41 PM, Quincey Morris wrote: 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 docume

Re: Table column index

2008-02-25 Thread Quincey Morris
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 lo

Re: Table column index

2008-02-25 Thread Adam Gerson
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]; Adam On Mon, Feb 25, 2008 at 3:46 PM, Quincey Morris <[EM

Table column index

2008-02-25 Thread Quincey Morris
Is it safe to assume that the column indexes returned by various NSTableView routines are in fact indexes into [NSTableView tableColumns]? I can't find anything in the documentation that says this. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple