Deprecated NSTableView Methods
A method identified as deprecated has been superseded and may become unsupported in the future.
Deprecated in OS X v10.3
drawsGrid
Returns a Boolean value that indicates whether the receiver draws a grid. (Deprecated in OS X v10.3. Use gridStyleMask instead.)
Return Value
Returns whether the grid is drawn.
Availability
- Available in OS X v10.0 and later.
- Deprecated in OS X v10.3.
Declared In
NSTableView.hselectColumn:byExtendingSelection:
Selects a column at a given index, optionally extending any existing selection. (Deprecated in OS X v10.3. Use selectColumnIndexes:byExtendingSelection: instead.)
Availability
- Available in OS X v10.0 and later.
- Deprecated in OS X v10.3.
See Also
Declared In
NSTableView.hselectedColumnEnumerator
This method has been deprecated. (Deprecated in OS X v10.3. Use selectedColumnIndexes instead.)
Availability
- Available in OS X v10.0 and later.
- Deprecated in OS X v10.3.
Declared In
NSTableView.hselectedRowEnumerator
This method has been deprecated. (Deprecated in OS X v10.3. Use selectedRowIndexes instead.)
Availability
- Available in OS X v10.0 and later.
- Deprecated in OS X v10.3.
Declared In
NSTableView.hselectRow:byExtendingSelection:
Selects a row at a given index, optionally extending any existing selection. (Deprecated in OS X v10.3. Use selectRowIndexes:byExtendingSelection: instead.)
Availability
- Available in OS X v10.0 and later.
- Deprecated in OS X v10.3.
See Also
Declared In
NSTableView.hsetDrawsGrid:
Sets whether the receiver draws a grid. (Deprecated in OS X v10.3. Use setGridStyleMask: instead.)
Parameters
- flag
Whether or not to draw the grid.
Availability
- Available in OS X v10.0 and later.
- Deprecated in OS X v10.3.
Declared In
NSTableView.hDeprecated in OS X v10.4
autoresizesAllColumnsToFit
Returns YES if the receiver proportionally resizes its columns to fit when its superview’s frame changes, NO if it only resizes the last column. (Deprecated in OS X v10.4. Use columnAutoresizingStyle instead.)
Availability
- Available in OS X v10.0 and later.
- Deprecated in OS X v10.4.
Declared In
NSTableView.hdragImageForRows:event:dragImageOffset:
Computes and returns an image to use for dragging. (Deprecated in OS X v10.4. Use dragImageForRowsWithIndexes:tableColumns:event:offset: instead.)
Discussion
Override this to return a custom image. dragRows represents the rows participating in the drag. dragEvent is a reference to the mouse-down event that began the drag. dragImageOffset is an in/out parameter.
This method is called with dragImageOffset set to NSZeroPoint, but it can be modified to reposition the returned image. A dragImageOffset of NSZeroPoint will cause the image to be centered under the cursor.
Availability
- Available in OS X v10.0 and later.
- Deprecated in OS X v10.4.
Declared In
NSTableView.hsetAutoresizesAllColumnsToFit:
Controls whether the receiver proportionally resizes its columns to fit when its superview’s frame changes. (Deprecated in OS X v10.4. Use setColumnAutoresizingStyle: instead.)
Discussion
If flag is YES, the difference in width is distributed among the receiver’s table columns; if flag is NO, only the last column is resized to fit.
To preserve compatibility this method sets the autoresizing style to NSTableViewUniformColumnAutoresizingStyle , if flag is YES. Otherwise the autoresizing style is set to NSTableViewLastColumnOnlyAutoresizingStyle.
Availability
- Available in OS X v10.0 and later.
- Deprecated in OS X v10.4.
See Also
Declared In
NSTableView.htableView:writeRows:toPasteboard:
Writes the specified rows to the specified pasteboard. (Deprecated in OS X v10.4. This method has been deprecated. You should implement tableView:writeRowsWithIndexes:toPasteboard: instead.)
Parameters
- aTableView
The table view.
- rows
An array of row indexes.
- pboard
The pasteboard.
Return Value
Return YES to allow the drag: otherwise NO to refuse the drag.
Discussion
Invoked by aTableView after it has been determined that a drag should begin, but before the drag has been started. To refuse the drag, return NO. To start a drag, return YES and place the drag data onto pboard (data, owner, and so on). The drag image and other drag-related information will be set up and provided by the table view once this call returns with YES. rows is the list of row numbers that will be participating in the drag.
Availability
- Available in OS X v10.0 and later.
- Deprecated in OS X v10.4.
Declared In
NSTableView.hDeprecated in OS X v10.5
columnsInRect:
Returns a range of indices for the receiver’s columns that lie wholly or partially within the horizontal boundaries of a given rectangle. (Deprecated in OS X v10.5. Use columnIndexesInRect: instead.)
Parameters
- aRect
A rectangle in the coordinate system of the receiver.
Return Value
A range of indices for the receiver’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.
Availability
- Available in OS X v10.0 and later.
- Deprecated in OS X v10.5.
See Also
Declared In
NSTableView.h© 2012 Apple Inc. All Rights Reserved. (Last updated: 2012-09-19)