<!--
{
  "availability" : [
    "macOS: 10.5.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSBrowserDelegate/browser(_:nextTypeSelectMatchFromRow:toRow:inColumn:for:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(pl)NSBrowserDelegate(im)browser:nextTypeSelectMatchFromRow:toRow:inColumn:forString:"
  },
  "title" : "browser(_:nextTypeSelectMatchFromRow:toRow:inColumn:for:)"
}
-->

# browser(_:nextTypeSelectMatchFromRow:toRow:inColumn:for:)

Sent to the delegate to customize a browser’s keyboard-based selection (type select) behavior.

```
@MainActor optional func browser(_ browser: NSBrowser, nextTypeSelectMatchFromRow startRow: Int, toRow endRow: Int, inColumn column: Int, for searchString: String?) -> Int
```

## Parameters

`browser`

The browser.

`startRow`

The beginning of the row set to search.

`endRow`

The end of the row set to search. This value can be less than `startRowIndex` when the search wraps around to the beginning.

`column`

The column containing the rows being searched.

`searchString`

The keyboard-based selection string. It is `nil` when no keyboard-based selection has begun.

## Return Value

The index of the first row that matches `searchString` between `startRowIndex` and `endRowIndex` - 1, or `-1` if there is no match.

---

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)