Platforms to show: All Mac Windows Linux Cross-Platform

NSTextCheckingResultMBS class

Type Topic Plugin Version macOS Windows Linux Console & Web iOS
class Spell Checking MBS MacCocoa Plugin 19.1 Yes No No Yes, macOS only No
Function: An occurrence of textual content found during the analysis of a block of text, such as when matching a regular expression.
On both iOS and macOS, instances of NSTextCheckingResultMBS are returned by the NSRegularExpression class and the NSDataDetectorMBS 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 NSTextCheckingResultMBS are returned by the NSSpellCheckerMBS object to describe the results of spelling, grammar, or text-substitution actions.
This is an abstract class. You can't create an instance, but you can get one from various plugin functions.

Feedback, Comments & Corrections

Checking Types

Constant Value Description
NSTextCheckingAllCustomTypes &hffffffff00000000 Checking types that can be used by clients.
NSTextCheckingAllSystemTypes &hffffffff Checking types supported by the system. The first 32 types are reserved.
NSTextCheckingAllTypes &hffffffffffffffff All possible checking types, both system- and user-supported.
NSTextCheckingTypeAddress 16 Attempts to locate addresses.
NSTextCheckingTypeCorrection 512 Performs autocorrection on misspelled words.
NSTextCheckingTypeDash 128 Replaces dashes with em-dashes.
NSTextCheckingTypeDate 8 Attempts to locate dates.
NSTextCheckingTypeGrammar 4 Checks grammar.
NSTextCheckingTypeLink 32 Attempts to locate URL links.
NSTextCheckingTypeOrthography 1 Attempts to identify the language
NSTextCheckingTypePhoneNumber 2048 Matches a phone number.
NSTextCheckingTypeQuote 64 Replaces quotes with smart quotes.
NSTextCheckingTypeRegularExpression 1024 Matches a regular expression.
NSTextCheckingTypeReplacement 256 Replaces characters such as (c) with the appropriate symbol (in this case ©).
NSTextCheckingTypeSpelling 2 Checks spelling.
NSTextCheckingTypeTransitInformation 4096 Matches a transit information, for example, flight information.

This class has no sub classes.

Some methods using this class:

Some events for this class:

Blog Entries

Xojo Developer Magazine

The items on this page are in the following plugins: MBS MacCocoa Plugin.

NSTextAttachmentMBS   -   NSTextContainerMBS

The biggest plugin in space...

MBS Xojo PDF Plugins