Contents

tableView(_:shouldTypeSelectFor:withCurrentSearch:)

Asks the delegate to allow or deny type select for the specified event and current search string.

Declaration

@MainActor optional func tableView(_ tableView: NSTableView, shouldTypeSelectFor event: NSEvent, withCurrentSearch searchString: String?) -> Bool

Parameters

  • tableView:

    The table view that sent the message.

  • event:

    The event.

  • searchString:

    The search string or nil if no type select has began.

Return Value

true to allow type select for event, false otherwise.

Discussion

Typically, this is called from the NSTableView keyDown: implementation and the event will be a key event.

See Also

Selecting rows