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: Stéphane Sudre <email@hidden>
- Date: Mon, 11 Feb 2002 15:09:38 +0100
On Friday, February 8, 2002, at 09:33 PM, Douglas Davidson wrote:
On Friday, February 8, 2002, at 05:59 AM, Stiphane Sudre wrote:
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.
It doesn't matter how much space there is, it just matters where the
tab stops are. If there aren't any more tab stops, then a tab will
advance you to the end of the line. The default NSParagraphStyle has
some tab stops already, but a limited number of them; it sounds like
you need to add some more.
Ok, I was really surprised by this behavior since I had never seen this
on a Mac OS 8/9 Text Editor.
The issue was not with a NSTextView I was using but with TextEdit. I was
testing some drag and drop code using a NSTabularTextPboardType
pasteboard and the dropped text was then suffering from this "virtual"
return.
I will try to add a NSParagraphStyle to the dragged data.
_______________________________________________
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.