• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Is this a bug in NSTextView or a feature?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Button state behavior broken by overriding drawInteriorWithFrame
      • From: Darrin Filer <email@hidden>
References: 
 >Re: Is this a bug in NSTextView or a feature? (From: Douglas Davidson <email@hidden>)

  • Prev by Date: RE: newbie question on 'Cocoa Programming for Mac OS X'
  • Next by Date: [OT rant] apology
  • Previous by thread: Re: Is this a bug in NSTextView or a feature?
  • Next by thread: Button state behavior broken by overriding drawInteriorWithFrame
  • Index(es):
    • Date
    • Thread