• 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
Re: scrollPoint have no effect
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >scrollPoint have no effect (From: Ivan Myrvold <email@hidden>)

  • Prev by Date: A suggestion for alias and symbolic links, and a request
  • Next by Date: Setting environment variables for Project Builder
  • Previous by thread: scrollPoint have no effect
  • Next by thread: Re: scrollPoint have no effect
  • Index(es):
    • Date
    • Thread