NSTextStorage subclass and word selection
NSTextStorage subclass and word selection
- Subject: NSTextStorage subclass and word selection
- From: jerome LAURENS <email@hidden>
- Date: Thu, 31 Jan 2002 10:17:20 +0100
Hi list,
I made my own concrete NSTextStorage subclass, i use an
NSMutableAttributedString instance to really store the text. I use my
text storage in a text view (with replaceTextStorage) But I run into
problems of word selection:
when i double click on "doesn't" only "doesn" is selected, "'t" is
omitted
when i double click on a number eg "12" only one digit is selected
Spelling also has problems: it says that "doesn" is not a recognized
word.
I suspect these two problems are both related to some linguistic
definition of words.
Unfortunately the only thing about words i have found in cocoa doc told
me that the apis where private (select by word). sigh.
I suspect NSConcreteTextStorage to be much more than a concrete
NSTextStorage subclass
do i have to implement myself this word selection/number selection.
Where should i start to fix my problem.
thanx