• 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: 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.

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

  • Prev by Date: Scripting implementation - accepting/returning ae records?
  • Next by Date: Re: Setting environment variables for Project Builder
  • Previous by thread: Re: scrollPoint have no effect
  • Next by thread: How to make an NSTextField focused?
  • Index(es):
    • Date
    • Thread