• 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: Scrolling Behavior of NSTextView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Scrolling Behavior of NSTextView


  • Subject: Re: Scrolling Behavior of NSTextView
  • From: Martin Wierschin <email@hidden>
  • Date: Mon, 7 Jun 2010 14:20:23 -0700

I encountered a wired behavior of NSTextView. I tried to use the following
statement to scroll to top:


[[_scrollView documentView] scrollPoint:NSMakePoint(0, 0)];

where the *documentView* is a NSTextView. But it seems when the window is in
certain size, the scroll-to-top behavior does not take effect.

Have you tried calling -[NSTextView scrollRangeToVisible:] with NSMakeRange(0,0)? I haven't tried it, but perhaps that method has some extra magic.


~Martin

_______________________________________________

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: 
 >Scrolling Behavior of NSTextView (From: Dong Feng <email@hidden>)

  • Prev by Date: [Moderator] Reminder WWDC is under NDA
  • Next by Date: Re: Scrolling Behavior of NSTextView
  • Previous by thread: Re: Scrolling Behavior of NSTextView
  • Next by thread: Problem with setting a cursor
  • Index(es):
    • Date
    • Thread