---
title: "quickLookPreviewableItems(inRanges:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nstextview/quicklookpreviewableitems(inranges:)"
---

# quickLookPreviewableItems(inRanges:)

Returns an array of URLs for items that can be displayed by QuickLook in the specified ranges.

## Declaration

```swift
func quickLookPreviewableItems(inRanges ranges: [NSValue]) -> [any QLPreviewItem]
```

## Parameters

- `ranges`: An array of ranges.

## Return Value

Return Value Returns an array of document URLs for text attachment content, if available.

## Discussion

Discussion Each preview item must conform to the QLPreviewItem protocol.

## See Also

### Supporting QuickLook

- [updateQuickLookPreviewPanel()](appkit/nstextview/updatequicklookpreviewpanel().md)
- [toggleQuickLookPreviewPanel(_:)](appkit/nstextview/togglequicklookpreviewpanel(_:).md)
