Re: scrollPoint have no effect
Re: scrollPoint have no effect
- Subject: Re: scrollPoint have no effect
- From: Esteban <email@hidden>
- Date: Thu, 18 Apr 2002 23:45:55 -0700
I believe the coordinates in any NSView are reversed so
NSMakePoint(0.0, 0.0) is defining a point at the bottom left of the
view. You will need to specify a point with the left and top
coordinates of the view to get scrollPoint to do what you want. I
havent used scrollPoint myself but that's how coordinates work in Cocoa
views.
-Esteban
On Thursday, April 18, 2002, at 11:36 AM, Ivan Myrvold wrote:
In a method, I have these lines:
NSPoint punkt = NSMakePoint (0.0, 0.0);
[oscrollView setDocumentView:myImageView];
[oscrollView scrollPoint:punkt];
When the setDocumentView method is called, my image is shown, with the
scroll bars scrolled all the way to the bottom.
I thought from the documentation, and from suggestions from some of
you, that scrollPoint should scroll the image to the top. But this
method call has absolutely no effect on the window. Any better
suggestions?
Ivan
_______________________________________________
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.
_______________________________________________
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.