• 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
Scroll a scrollView to the top
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Scroll a scrollView to the top


  • Subject: Scroll a scrollView to the top
  • From: Ben Mackin <email@hidden>
  • Date: Thu, 21 Nov 2002 23:04:37 -0800

I have a NSImageView inside my scroll view. Everything works great, the
image displays fie, and scrolls fine.

The issue is that when I load the image in, it scrolls all the way to the
bottom. I would rather it start at the top. So I was digging around, and
found scrollPoint, and tried using it as so:

[scrollView scrollPoint:NSMakePoint(0,0)];

However, nothing happens. I have tried all kinds of numbers, and nothing
changes in my scrollView, it is always still at the bottom. I tried
searchign the archives, but all I could come up with was scrolling a
NSTextView, and that didn't help me.

If anyone has some thoughts, please let me know.

Thanks,
Ben
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Scroll a scrollView to the top
      • From: Jérôme Laurens <email@hidden>
  • Prev by Date: Re: Table View Blues (summary)
  • Next by Date: Re: Table View Blues (summary)
  • Previous by thread: WebServicesCore.framework & SOAP?
  • Next by thread: Re: Scroll a scrollView to the top
  • Index(es):
    • Date
    • Thread