Re: scrollPoint have no effect
Re: scrollPoint have no effect
- Subject: Re: scrollPoint have no effect
- From: "John C. Randolph" <email@hidden>
- Date: Thu, 18 Apr 2002 16:30:14 -0700
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];
You're sending the scrollPoint: message to the wrong view.
Change this to [myImageView 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?
-jcr
John C. Randolph <email@hidden> (408) 974-8819
Sr. Cocoa Software Engineer,
Apple Worldwide Developer Relations
http://developer.apple.com/cocoa/index.html
_______________________________________________
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.