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.
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 mails | Author | Date |
|---|---|---|
| Jeremy | Feb 24, 20:43 | |
| Gary L. Wade | Feb 24, 21:16 | |
| I. Savant | Feb 24, 21:20 | |
| Jeremy | Feb 24, 21:23 | |
| I. Savant | Feb 24, 21:28 | |
| I. Savant | Feb 24, 21:30 | |
| I. Savant | Feb 24, 21:33 | |
| Jeremy | Feb 24, 21:34 | |
| I. Savant | Feb 24, 21:38 | |
| Jeremy | Feb 24, 21:44 |






Cocoa mail archive

