Hello,
Sorry for the noise, it turns out that the bug was in my software after all!
thanks,
--
Felipe Monteiro de Carvalho
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Con
> On Sep 27, 2016, at 2:07 AM, Graham Cox wrote:
>
> Are you sure about that? I’ve never seen the text view add line endings to
> the underlying raw text - that’s just not how text layout works.
+1. I’ve been using NSTextView since 2001 and I know for a fact that it doesn’t
insert meta-charac
> On 27 Sep 2016, at 7:28 PM, Felipe Monteiro de Carvalho
> 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, the
> On 27 Sep 2016, at 7:26 PM, Felipe Monteiro de Carvalho
> wrote:
>
> But to be sure I will test the same thing as you are testing, you are
> reading the text via NSTextView.string ?
Yes. I set up a very simple situation where the NSTextView’s delegate simply
logs the textView.string as I t
On Tue, Sep 27, 2016 at 11:26 AM, Felipe Monteiro de Carvalho
wrote:
> But to be sure I will test the same thing as you are testing, you are
> reading the text via NSTextView.string ?
By the way, not sure if this makes a difference, but the original text
was added via NSTextView.string
It is not
On Tue, Sep 27, 2016 at 11:07 AM, Graham Cox wrote:
> Are you sure about that? I’ve never seen the text view add line endings to
> the underlying raw text - that’s just not how text layout works.
> (Indeed I just made a quick test case and I don’t see that happening).
What I am writing is a larg
> On 27 Sep 2016, at 5:31 PM, Felipe Monteiro de Carvalho
> wrote:
>
> But the resulting string contains line endings which are added in the
> places where the word-wrap takes places, and I need the raw text,
> without such added line endings.
Are you sure about that? I’ve never seen the text
Hello,
I have a normal NSTextView and I would like to programatically read
the text inside it.
This is trivial, just call txt.string or txt.textContainer.string
But the resulting string contains line endings which are added in the
places where the word-wrap takes places, and I need the raw text,