<!--
{
  "availability" : [
    "macOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "FileProvider",
  "identifier" : "/documentation/FileProvider/NSFileProviderSearchEnumerator/enumerateSearchResults(for:startingAt:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "File Provider"
    ],
    "preciseIdentifier" : "c:objc(pl)NSFileProviderSearchEnumerator(im)enumerateSearchResultsForObserver:startingAtPage:"
  },
  "title" : "enumerateSearchResults(for:startingAt:)"
}
-->

# enumerateSearchResults(for:startingAt:)

Enumerates search results starting from the specified page, in response to a call from the framework.

```
func enumerateSearchResults(for observer: any NSFileProviderSearchEnumerationObserver, startingAt page: NSFileProviderPage?)
```

## Parameters

`observer`

An [`NSFileProviderSearchEnumerationObserver`](/documentation/FileProvider/NSFileProviderSearchEnumerationObserver), to which your extension provides search results.

`page`

An indication of a location within the search results to resume enumeration. This parameter is non-`nil` if you previously provided a `nextPage` parameter to the observer’s [`finishEnumerating(upTo:)`](/documentation/FileProvider/NSFileProviderSearchEnumerationObserver/finishEnumerating(upTo:)) method. Make sure the page contains whatever information you need to resume the enumeration.

## Discussion

Implement this method to perform your search and deliver pages of results to `observer`.

---

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)