Platforms to show: All Mac Windows Linux Cross-Platform
NSRangeMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | Cocoa | MBS Main Plugin | 9.6 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
- 4 properties
- 10 methods
- method Constructor
- method Constructor(Location as UInt32, Length as UInt32)
- method Constructor(p as Ptr)
- method Constructor(s as string)
- method Equal(other as NSRangeMBS) as boolean
- method Intersection(other as NSRangeMBS) as NSRangeMBS
- method LocationInRange(location as UInt32) as boolean
- method Operator_Convert as String
- method String as String
- method Union(other as NSRangeMBS) as NSRangeMBS
This class has no sub classes.
Some useful global functions for this class:
- NSMakeRangeMBS(location as UInt32, length as UInt32) as NSRangeMBS
Some methods using this class:
- MKLocalSearchCompletionMBS.subtitleHighlightRanges as NSRangeMBS()
- NSAttributedStringMBS.rangeOfTextBlock(textBlock as NSTextBlockMBS, location as Integer) as NSRangeMBS
- NSAttributedStringMBS.rangeOfTextTable(textTable as NSTextTableMBS, location as Integer) as NSRangeMBS
- NSLayoutManagerMBS.lineFragmentRectForGlyphAtIndex(glyphIndex as Integer, byref effectiveRange as NSRangeMBS, withoutAdditionalLayout as boolean) as NSRectMBS
- NSLinguisticTaggerMBS.sentenceRangeForRange(range as NSRangeMBS) as NSRangeMBS
- NSLinguisticTaggerMBS.setOrthography(orthography as NSOrthographyMBS, range as NSRangeMBS)
- NSMutableAttributedStringMBS.addAttribute(name as string, value as Variant, range as NSRangeMBS)
- NSMutableAttributedStringMBS.removeAttribute(name as string, range as NSRangeMBS)
- NSTextCheckingResultMBS.correctionCheckingResult(Range as NSRangeMBS, replacementString as String, alternativeStrings() as String) as NSTextCheckingResultMBS
- NSTextCheckingResultMBS.dateCheckingResult(Range as NSRangeMBS, date as Date) as NSTextCheckingResultMBS
Some properties using for this class:
- AVSpeechSynthesisMarkerMBS.textRange as NSRangeMBS
- MLImageSizeConstraintMBS.pixelsWideRange as NSRangeMBS
- MLSequenceConstraintMBS.countRange as NSRangeMBS
- NSAttributedStringMBS.Range as NSRangeMBS
- NSLinguisticValueMBS.sentenceRange as NSRangeMBS
- NSLinguisticValueMBS.tokenRange as NSRangeMBS
- NSTextCheckingResultMBS.range as NSRangeMBS
- SCNGeometryElementMBS.primitiveRange as NSRangeMBS
- SFTranscriptionSegmentMBS.substringRange as NSRangeMBS
- NSTextMBS.selectedRange as NSRangeMBS
Some events using this class:
- AVSpeechSynthesizerMBS.willSpeakRangeOfSpeechString(characterRange as NSRangeMBS, utterance as AVSpeechUtteranceMBS)
- DesktopNSTextViewControlMBS.shouldChangeTextInRange(affectedCharRange as NSRangeMBS, replacementString as string) as boolean
- DesktopOSAScriptControlMBS.shouldChangeTextInRange(affectedCharRange as NSRangeMBS, replacementString as string) as boolean
- NSSpellCheckerMBS.requestCandidatesForSelectedRangeCompleted(sequenceNumber as Integer, candidates() as NSTextCheckingResultMBS, stringToCheck as String, selectedRange as NSRangeMBS, checkingTypes as Int64, options as Dictionary, tag as Variant)
- NSSpellCheckerMBS.requestCheckingOfStringCompleted(sequenceNumber as Integer, results() as NSTextCheckingResultMBS, orthography as NSOrthographyMBS, wordCount as Integer, stringToCheck as String, Range as NSRangeMBS, checkingTypes as Int64, options as Dictionary, tag as Variant)
- NSTextViewControlMBS.shouldChangeTextInRange(affectedCharRange as NSRangeMBS, replacementString as string) as boolean
- NSTextViewMBS.shouldChangeTextInRange(affectedCharRange as NSRangeMBS, replacementString as string) as boolean
- OSAScriptControlMBS.shouldChangeTextInRange(affectedCharRange as NSRangeMBS, replacementString as string) as boolean
Some examples using this class:
- /MacCocoa/Print RTF via NSGraphics
- /MacCocoa/SelTextBackColor
- /MacCocoa/Spellcheck/SpellCheck like TextEdit
- /MacCocoa/Spellcheck/SpellCheck RB
- /MacControls/Label with Color
- /MacControls/NSTextView Selection
- /MacControls/PopupMenu in Cocoa
- /MacControls/TextEdit MBS
- /MacFrameworks/Cocoa Controls/Cocoa Controls
- /MacFrameworks/NSLinguisticTagger test
Blog Entries
- Styled Text for Labels in your Xojo iOS app
- MBS Xojo / Real Studio Plugins, version 16.1pr1
- Tip of the day: Adding links to Textarea on OS X
- Apply fonts to font PopupMenu
- Nearly 2000 new Functions in the 9.6 prerelease of MBS
- MBS REALbasic plug-in 9.6
Xojo Developer Magazine
The items on this page are in the following plugins: MBS Main Plugin.
NSProgressIndicatorMBS - NSRectMBS