---
title: "outlineView(_:shouldTypeSelectFor:withCurrentSearch:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsoutlineviewdelegate/outlineview(_:shouldtypeselectfor:withcurrentsearch:)"
---

# outlineView(_:shouldTypeSelectFor:withCurrentSearch:)

Returns a Boolean value that indicates whether type select should proceed for a given event and search string.

## Declaration

```swift
@MainActor optional func outlineView(_ outlineView: NSOutlineView, shouldTypeSelectFor event: NSEvent, withCurrentSearch searchString: String?) -> Bool
```

## Parameters

- `outlineView`: The outline view that sent the message.
- `event`: The event that caused the message to be sent.
- `searchString`: The string for which searching is to proceed. The search string is nil if no type select has begun.

## Return Value

Return Value true if type select should proceed, otherwise false.

## Discussion

Discussion Generally, this method will be called from keyDown(with:) and the event will be a key event.

## See Also

### Supporting Type Select

- [outlineView(_:typeSelectStringFor:item:)](appkit/nsoutlineviewdelegate/outlineview(_:typeselectstringfor:item:).md)
- [outlineView(_:nextTypeSelectMatchFromItem:toItem:for:)](appkit/nsoutlineviewdelegate/outlineview(_:nexttypeselectmatchfromitem:toitem:for:).md)
