• 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: Forcing a scroll to the top of an NSScrollView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Forcing a scroll to the top of an NSScrollView


  • Subject: Re: Forcing a scroll to the top of an NSScrollView
  • From: Pontus Ilbring <email@hidden>
  • Date: Fri, 5 Aug 2005 11:25:25 +0200

On 8/4/05, Adam Holt <email@hidden> wrote:
> Hi,
>
> I'm trying to force my scrollview to scroll to the top.  I've tried a few
> things but neither have worked, including:
>
>         [myScrollView scrollPoint:NSZeroPoint];

scrollPoint: scrolls the receiver's ancestor clip view and not the
receiver itself, which is why sending scrollPoint: to the scroll view
does nothing. You have to send the message to the scroll view's
contents:

[[myScrollView documentView] scrollPoint:NSZeroPoint];
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Forcing a scroll to the top of an NSScrollView
      • From: Adam Holt <email@hidden>
References: 
 >Forcing a scroll to the top of an NSScrollView (From: Adam Holt <email@hidden>)

  • Prev by Date: Re: NSLayoutManager strangeness
  • Next by Date: Re: Forcing a scroll to the top of an NSScrollView
  • Previous by thread: Forcing a scroll to the top of an NSScrollView
  • Next by thread: Re: Forcing a scroll to the top of an NSScrollView
  • Index(es):
    • Date
    • Thread