Re: Scroll a scrollView to the top
Re: Scroll a scrollView to the top
- Subject: Re: Scroll a scrollView to the top
- From: Jérôme Laurens <email@hidden>
- Date: Fri, 22 Nov 2002 11:00:16 +0100
Le vendredi, 22 nov 2002, ` 08:04 Europe/Zurich, Ben Mackin a icrit :
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.
you should send the scrollPoint: message to your image view not to the
scroll view itself
Also, you must take care of the isFlipped statue of the view.
_______________________________________________
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.