<div dir="ltr">Thanks a lot for the answer!<div><br></div><div>I see, I'll try to look into it further...</div><div><br></div><div>Have a nice day!</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jan 5, 2015 at 5:44 PM, Allan Odgaard <span dir="ltr"><<a href="mailto:mailinglist@textmate.org" target="_blank">mailinglist@textmate.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 3 Jan 2015, at 21:48, ecir hana wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
[…] by default, the window resize triggers NSTextView scroll<span class=""><br>
which puts the cursor in the middle of the view. Which is what I'm trying<br>
to avoid, i.e. I want the cursor to stay where it was (if possible due to<br>
reflow).<br>
</span></blockquote>
<br>
TextMate is not based on NSTextView, so the behavior you see in TextMate is not an indication of what NSTextView can or cannot do.<br>
<br>
If I understand your issue correct, then I think by default NSScrollView/NSClipView will adhere to the resizing mask as to how the document view should behave when the containing clip view is being resized, but NSTextView could have special code being triggered on resize, though it probably wouldn’t, unless it actually scrolls the caret into the visible area.<br>
<br>
______________________________<u></u>_________________<br>
textmate mailing list<br>
<a href="mailto:textmate@lists.macromates.com" target="_blank">textmate@lists.macromates.com</a><br>
<a href="http://lists.macromates.com/listinfo/textmate" target="_blank">http://lists.macromates.com/<u></u>listinfo/textmate</a></blockquote></div><br></div>