• 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: Scrolling a NSScrollView by code
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Scrolling a NSScrollView by code


  • Subject: Re: Scrolling a NSScrollView by code
  • From: Jeffrey Mattox <email@hidden>
  • Date: Thu, 27 Mar 2003 17:19:16 -0600

I asked this exact same question just a few days ago. Here's the solution:

theClipView = [yourScrollView contentView]; // this line untested
[theClipView scrollToPoint:NSMakePoint(100.0, 200.0)]; // scroll

And you might want to do this to get the scrollbars to move, too:

[theScrollview reflectScrolledClipView:theClipView]; // adjust bars

We need an FAQ list.

Jeff

At 10:57 PM +0100 3/27/03, Giovanni Donelli wrote:
Hello powerful guys :)
I have a problem:

I want to tell to a NSScrollView object to scroll to a point I want... I haven't found any method to do this... but there must be a way! any advice?

I want to moke the effect of the vertical or orizontal bar

thanks for your help!

Giovanni
_______________________________________________
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: 
 >Scrolling a NSScrollView by code (From: Giovanni Donelli <email@hidden>)

  • Prev by Date: Re: Using NSTimer to call the main thread
  • Next by Date: Re: Is there a ready chart plotting view?
  • Previous by thread: Scrolling a NSScrollView by code
  • Next by thread: Cocoa et UML
  • Index(es):
    • Date
    • Thread