rows(in:)
Returns a range of indexes for the rows that lie wholly or partially within the vertical boundaries of the specified rectangle.
Declaration
func rows(in rect: NSRect) -> NSRangeParameters
- rect:
A rectangle in the coordinate system of the table view.
Return Value
A range of indexes for the table view’s rows that lie wholly or partially within the horizontal boundaries of aRect. If the width or height of aRect is 0, this method returns an NSRange whose length is 0.
Discussion
The location of the range is the index of the first row in the rectangle, and the length is the number of rows that lie in the rectangle.