NSTextCheckingResult
An occurrence of textual content found during the analysis of a block of text, such as when matching a regular expression.
Declaration
class NSTextCheckingResultOverview
On both iOS and macOS, instances of NSTextCheckingResult are returned by the NSRegularExpression class and the NSDataDetector class to indicate the discovery of content. In those cases, what is found may be a match for a regular expression or a date, address, phone number, and so on. In macOS, instances of NSTextCheckingResult are returned by the NSSpellChecker object to describe the results of spelling, grammar, or text-substitution actions.
Topics
Text Checking Type Range and Type
Text Checking Results for Text Replacement
Text Checking Results for Regular Expressions
Text Checking Result Components
Text Checking Results for URLs
Text Checking Results for Addresses
Text Checking Results for Transit Information
Text Checking Results for Phone Numbers
Text Checking Results for Dates and Times
dateCheckingResult(range:date:)dateCheckingResult(range:date:timeZone:duration:)datedurationtimeZone
Text Checking Results for Typography
Text Checking Results for Spelling
Text Checking Results for Orthography
Text Checking Results for Grammar
Adjusting the Ranges of a Text Checking Result
Constants
Keys for Transit ComponentsKeys for Address ComponentsNSTextCheckingResult.CheckingTypeNSTextCheckingTypesNSTextCheckingKeyAnonymous