Find Panel Search Metadata

In addition to communicating search strings via the find pasteboard, the standard Find panel for NSTextView also communicates search option metadata, including case sensitivity and substring matching options. This metadata is stored in a property list as the findPanelSearchOptions value on the global find pasteboard. As such, third party applications may store additional keys in this property list to communicate additional metadata as desired to support the various search options common to many third-party applications' Find panels.



static let findPanelSearchOptions: NSPasteboard.PasteboardType

Type for the find panel metadata property list.

static let findPanelCaseInsensitiveSearch: NSPasteboard.PasteboardType.FindPanelSearchOptionKey

A Boolean value indicating whether the search is case-insensitive.

static let findPanelSubstringMatch: NSPasteboard.PasteboardType.FindPanelSearchOptionKey

A number object containing the match type to use in the find panel.