Re: NSTextView
Re: NSTextView
- Subject: Re: NSTextView
- From: ecir hana <email@hidden>
- Date: Thu, 07 Jun 2012 14:34:22 +0200
On Thu, Jun 7, 2012 at 5:47 AM, koko <email@hidden> wrote:
> On an NSTextView I call -selectAll: and then -insertText:
>
> This scrolls the view to the end of the text.
>
> How would I scroll the view to the top of the text?
>
Just before the insertText: get the current scroll position and then
restore it:
http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/NSScrollViewGuide/Articles/Scrolling.html
"Determining the Current Scroll Location"
_______________________________________________
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 (From: koko <email@hidden>) |