Re: NSTextView - scroll programmatically to place the current line (where the text cursor is) in the middle.
Re: NSTextView - scroll programmatically to place the current line (where the text cursor is) in the middle.
- Subject: Re: NSTextView - scroll programmatically to place the current line (where the text cursor is) in the middle.
- From: Don Quixote de la Mancha <email@hidden>
- Date: Wed, 16 Nov 2011 11:03:37 -0800
I am sympathetic with your reasoning, but I don't think it's what your
users will expect. Most text-entry areas in most apps on most
platforms start the text entry at the very top when they are empty,
with the text entry advancing downwards.
I suggest that you do not start scrolling your text until enough has
been entered by the user that the current line would move below the
middle.
If you don't agree, Jens' suggestion sounds like it would do what you
want. Try implementing it his way, as well as the way I recommend,
then trying each implementation out of a few different people who are
representative of your target market.
--
Don Quixote de la Mancha
Dulcinea Technologies Corporation
Software of Elegance and Beauty
http://www.dulcineatech.com
email@hidden
_______________________________________________
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