<!--
{
  "availability" : [
    "macOS: 10.5.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSOutlineViewDelegate/outlineView(_:shouldTypeSelectFor:withCurrentSearch:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(pl)NSOutlineViewDelegate(im)outlineView:shouldTypeSelectForEvent:withCurrentSearchString:"
  },
  "title" : "outlineView(_:shouldTypeSelectFor:withCurrentSearch:)"
}
-->

# outlineView(_:shouldTypeSelectFor:withCurrentSearch:)

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

```
@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

<doc://com.apple.documentation/documentation/Swift/true> if type select should proceed, otherwise <doc://com.apple.documentation/documentation/Swift/false>.

## Discussion

Generally, this method will be called from [`keyDown(with:)`](/documentation/AppKit/NSResponder/keyDown(with:)) and the event will be a key event.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)