Online Documentation - Statistics - FAQ - Plugin Parts (All, Dependencies) - Class hierarchy
New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1
The list of the topics, classes, interfaces, controls, modules, global methods by category, global methods by name, screenshots, licenses and examples.
Platforms to show: All Mac Windows Linux Cross-Platform
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | Cocoa Regular Expressions | MBS MacCocoa Plugin | 19.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
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.
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. Example |
NSTextCheckingTypeCorrection | 512 |
Performs autocorrection on misspelled words. |
NSTextCheckingTypeDash | 128 |
Replaces dashes with em-dashes. |
NSTextCheckingTypeDate | 8 |
Attempts to locate dates. Example |
NSTextCheckingTypeGrammar | 4 |
Checks grammar. |
NSTextCheckingTypeLink | 32 |
Attempts to locate URL links or emails. Example |
NSTextCheckingTypeOrthography | 1 |
Attempts to identify the language |
NSTextCheckingTypePhoneNumber | 2048 |
Matches a phone number. Example |
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. Example |
This class has no sub classes.
The items on this page are in the following plugins: MBS MacCocoa Plugin.
NSTextBlockMBS - NSTextContainerMBS