• 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: NSTextView - scroll programmatically to place the current line (where the text cursor is) in the middle.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >NSTextView - scroll programmatically to place the current line (where the text cursor is) in the middle. (From: Nick <email@hidden>)
 >Re: NSTextView - scroll programmatically to place the current line (where the text cursor is) in the middle. (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: Implementing Full Screen for 10.7 but app should also run on 10.6
  • Next by Date: Re: About iVars declaration and property
  • Previous by thread: Re: NSTextView - scroll programmatically to place the current line (where the text cursor is) in the middle.
  • Next by thread: Determining when a Lion Versioned document is locked/unlocked
  • Index(es):
    • Date
    • Thread