NSTextView linewrapping bugs?
NSTextView linewrapping bugs?
- Subject: NSTextView linewrapping bugs?
- From: m <email@hidden>
- Date: Tue, 18 Mar 2003 17:34:54 +0100
hm,
sorry if this has been brought up before, and excuse the messy layout
that follows, but this is serious...
for the last couple of months i'm experiencing a weird and rather
irritating bug in TextEdit.app and Mail.app and thought "good heavens,
am i glad that our app does not exhibit this behaviour".
now, as of today, guess what? :(
this is the problem:
let's say i have the following line...
these are just some words |
where "|" marks the end of the line or rather the end of the
NSTextView. if i continue writing, all is well:
these are just some words |
while this is a dot: . |
k, now SOMETIMES it just happens that one misses a space, and the line
wraps like this:
these are just some |
wordswhile this is a dot: . |
all is well, correct behaviour. now, if one enters a space between
"words" and "while", the lines should rewrap, but they just don't!
instead, this is the result:
these are just some |
words while this is a dot: . |
this does not happen all the time, and i have yet to discover a
pattern, but the simple fact that it happens SOMEtimes makes me pretty
nervous.
in TextEdit.app -- and this is VERY strange -- this wrapping bug
sometimes happens upon the opening of a document (that's right: the
documents get rewrapped), and switching magnifications resolves the
problem as it once again seems to rewrap the whole document.
yet, in our app, we don't have magnifications, so one needs to actually
rewrap the lines himself (rather awkward by deleting the leading space
before "words" and then adding it again) or resize the NSTextView one
way or the other to get proper linewrapping back.
is this a known bug, and if so: how can it be fixed?
and furthermore: why does this not happen all the time? i tried, but
was unable to pin it down to ps- or tt-fonts, fixed-width,
variable-width, certain sizes, wordbreaks on/off -- it doesn't matter...
on a sidenote: is it just me or does anybody else feel that the way the
insertion point moves from one line's end to the beginning of the next
line (when soft-wrapping is on) is less than perfect? if i click on the
end of a line, the insertion point is placed behind the last space, and
a tap on the left-arrow places it behind the first character of the
next line. yet, placing the insertion-point before the last space, a
tap on the left-arrow places the insertion point at the very beginning
of the next line. however, shift-left-arrow selects the last space.
i can sense some logic behind that, but, to be honest, it really seems
wrong to me. and i wonder if this "phenomenon" is the cause for the
wrapping-bug...
thanx and greetz
mahakk
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.