NSTextView selection, lines being CR'd
NSTextView selection, lines being CR'd
- Subject: NSTextView selection, lines being CR'd
- From: Michael Hanna <email@hidden>
- Date: Tue, 9 Nov 2004 16:47:27 -0500
In TextEdit when you select text, the selection extends out to the
scrollbar. I noticed that it's a subclass of
NSScrollView(ScalingScrollView) but in my app I use an NSTextView, and
the width of the selection is somehow related to the width of the font.
This is a problem when reading in text files with wide lines since they
are CR'd to the next line.
I built the text system by hand, such that it is like figure 4 in:
file:///Developer/ADC Reference Library/documentation/Cocoa/
Conceptual/TextArchitecture/Concepts/CommonConfigs.html
How do I extend it in the same way, or at least ensure that lines don't
CR prematurely?
Michael
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden