Skip navigation.
 
mlRe: Clearing an NSTextView
FROM : I. Savant
DATE : Sun Feb 24 21:33:46 2008

>> And how do I select all of characters? That would be my only 
>> problem with the replaceCharactersInRange:withString:...

>
>  -setSelectedRange:?


  Sorry, I misunderstood your question. Why would you need to 
'select' the characters to use -replaceCharactersInRange:withString:? 
You give it the entire range of the text currently in the text view 
and a new string to replace it with.

  No selection necessary if none is desired ...

--
I.S.

Related mailsAuthorDate
mlClearing an NSTextView Jeremy Feb 24, 20:43
mlRe: Clearing an NSTextView Gary L. Wade Feb 24, 21:16
mlRe: Clearing an NSTextView I. Savant Feb 24, 21:20
mlRe: Clearing an NSTextView Jeremy Feb 24, 21:23
mlRe: Clearing an NSTextView I. Savant Feb 24, 21:28
mlRe: Clearing an NSTextView I. Savant Feb 24, 21:30
mlRe: Clearing an NSTextView I. Savant Feb 24, 21:33
mlRe: Clearing an NSTextView Jeremy Feb 24, 21:34
mlRe: Clearing an NSTextView I. Savant Feb 24, 21:38
mlRe: Clearing an NSTextView Jeremy Feb 24, 21:44