columnsInRect:
Returns a range of indexes for the table view’s columns that lie wholly or partially within the horizontal boundaries of the specified rectangle.
Declaration
- (NSRange) columnsInRect:(NSRect) rect;Parameters
- rect:
A rectangle in the coordinate system of the table view.
Return Value
A range of indexes for the table view’s columns that lie wholly or partially within the horizontal boundaries of aRect. If the width or height of aRect is 0, returns an NSRange whose length is 0.
Discussion
The location of the range is the first such column’s index, and the length is the number of columns that lie in aRect.
See Also
Related Documentation
Deprecated Methods
dragImageForRows:event:dragImageOffset:setAutoresizesAllColumnsToFit:autoresizesAllColumnsToFitselectColumn:byExtendingSelection:selectRow:byExtendingSelection:tableView:writeRows:toPasteboard:setDrawsGrid:drawsGridselectedColumnEnumeratorselectedRowEnumeratorfocusedColumn()setFocusedColumn(_:)shouldFocusCell(_:atColumn:row:)performClickOnCell(atColumn:row:)preparedCell(atColumn:row:)