Re: Is this a bug in NSTextView or a feature?
Re: Is this a bug in NSTextView or a feature?
- Subject: Re: Is this a bug in NSTextView or a feature?
- From: email@hidden
- Date: Fri, 8 Feb 2002 12:39:07 -0800
When you type some text in a NSTextView with some tabs:
ddqfsdf fsfsdf sfsfsd sdfsdfsdf sfsfsdfsdf fsfsdfsdf lastpart
The last tab is transformed to a virtual Return (on this sample code
"lastpart" is on the second line even if I resize the Text Window to be
as wide as a 21" display (don't have a 22" Cinema Display to test if
this is fixing this).
I'm speaking of a virtual return because you can try everything
(deleting, retyping, etc...), the text won't fit on 1 line even if there
is 3 times the required space.
So is it the designed behavior or a Bug?
I *think* what you're wondering about is in the NSParagraphStyle doc:
The default paragraph style has the following default values: ... 12
left-aligned tabs, spaced by 28.0 points.
This means the last time is at 336 points out, or about 4.6 inches
out. So if you have a reasonable-size window, the default tab stops
will give out before you reach the end of the window. The next tab stop
will be found on the following line.
So... not a bug. A little surprising, perhaps, but not a bug.
Ben Haller
Stick Software
_______________________________________________
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.