Scroll a scrollView to the top
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.