• 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: Programmatically scrolling
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Programmatically scrolling


  • Subject: Re: Programmatically scrolling
  • From: Jeffrey Mattox <email@hidden>
  • Date: Tue, 25 Mar 2003 20:19:39 -0600

At 8:00 AM -0800 3/25/03, Henry McGilton wrote:
On Tuesday, March 25, 2003, at 04:20 AM, Quentin Mathi wrote:

Le mardi, 25 mars 2003, ` 10:55 Europe/Paris, Jeffrey Mattox a icrit :

I want to move a scroll bar programmatically. I can get the scroller object, and I can set its value, but nothing happens. How do I cause it to display the updated scroll view after doing this:

[[theScrollView verticalScroller] setIntValue:1];

In order to scroll a scrollView, you need to change the clipView (not the scroller) like that :

[theClipView setBoundsOrigin:NSMakePoint([theClipView bounds].origin.x, [theClipView bounds].origin.y + 25)]

Then the scroller will be automatically updated, that's it.


Possibly scrollToPoint might be more appropriate


Thanks, that works fine to move the clip view, but the scroll bars don't change their position. No big deal, but is there a way to automatically update the scroll bars when the scroll position is changed?

Jeff
_______________________________________________
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: 
 >Re: Programmatically scrolling (From: Henry McGilton <email@hidden>)

  • Prev by Date: Re: Populating an NSPopUpButton from an array
  • Next by Date: NSMovieView Madness
  • Previous by thread: Re: Programmatically scrolling
  • Next by thread: popup buttons and notifications
  • Index(es):
    • Date
    • Thread