• 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
Setting scroll position: a nightmare!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Setting scroll position: a nightmare!


  • Subject: Setting scroll position: a nightmare!
  • From: Eric Forget <email@hidden>
  • Date: Thu, 26 Feb 2004 00:36:44 -0500

Hi,

I'm trying to specify programmatically the scroll position of a view. I've
tried with all of these possibility:

1) [clipView scrollToPoint:myTopLeftPos];

2) [self scrollPoint:myTopLeftPos];

3) [self scrollRectToVisible:myVisibleRect];

I've seen a lot of glitches with all of those.

A) I need to call [enclosingScrollView reflectScrolledClipView:clipView]; if
I want the NSScrollers to be updated.

B) Once done it 1 time, NSRulers are then unable refresh correctly with an
[self autoscroll:theEvent] from a mouseDragged message. It looks like their
"copy on scroll" are completely out of sync with position of the view. If I
do a manual display to make then they draw correctly:

[[[self enclosingScrollView] horizontalRulerView] display];
[[[self enclosingScrollView] verticalRulerView] display];

That way, it seems to work almost: now I start having blinking ruler
marks... I may find another hack for them, however I feel I'm touching
mines. Is there something obvious I'm missing?

Thanks,

Eric

___________________________________________________________________

Eric Forget Cafederic
email@hidden <http://www.cafederic.com/>

Fingerprint <86D5 38F5 E1FD 5D9C 71C3 BAA3 797E 70A4 6210 C684>
_______________________________________________
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.


  • Prev by Date: Re: NSStepper with a time field
  • Next by Date: NSPanel
  • Previous by thread: Re: NSDocument / Java problem
  • Next by thread: NSPanel
  • Index(es):
    • Date
    • Thread