Waar de cursor staat heet de "selection" (is dat het woord dat je zoekt?):
selectedRanges
Returns an array containing the ranges of characters selected in the receivers layout manager.
- (NSArray *)selectedRanges
Return Value
A non-nil, non-empty array of objects responding to the NSValue rangeValue method. In addition, the objects in the array are sorted, non-overlapping, non-contiguous, and (except for the case of a single range) have non-zero-length.
Availability
Available in Mac OS X v10.4 and later.
See Also
setSelectedRanges: