• 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: Scroll a scrollView to the top
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.
References: 
 >Scroll a scrollView to the top (From: Ben Mackin <email@hidden>)

  • Prev by Date: Simple Semi-Transparent View?
  • Next by Date: Re: NSString path manipulation methods
  • Previous by thread: Scroll a scrollView to the top
  • Next by thread: writeToFile:
  • Index(es):
    • Date
    • Thread