Sets the selection to the characters in an array of ranges.
- macOS 10.0+
A non-nil, non-empty array of objects responding to the NSValue
rangemethod. The ranges in the
rangesarray must begin and end on glyph boundaries and not split base glyphs and their nonspacing marks.