markedRange()
Returns the range of the marked text.
Declaration
func markedRange() -> NSRangeReturn Value
The range of marked text or {NSNotFound, 0} if there is no marked range.
Discussion
The returned range measures from the start of the receiver’s text storage. The return value’s location is NSNotFound and its length is 0 if and only if hasMarkedText() returns false.