Re: NSTextView read real text content (without 0xA added by wordwrap)
Re: NSTextView read real text content (without 0xA added by wordwrap)
- Subject: Re: NSTextView read real text content (without 0xA added by wordwrap)
- From: Graham Cox <email@hidden>
- Date: Tue, 27 Sep 2016 19:37:19 +1000
> On 27 Sep 2016, at 7:28 PM, Felipe Monteiro de Carvalho <email@hidden> wrote:
>
> By the way, not sure if this makes a difference, but the original text
> was added via NSTextView.string
>
> It is not text inputted by the user.
>
Well, a NSTextView can’t have a string unless it came from somewhere, therefore that isn’t the ‘original’ string. Perhaps the original string has those line breaks? If it was cut+pasted from a block of text that had forced line endings, NSTextView will preserve those, but it definitely never adds them as part of its layout process.
—Graham
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden