Re: scrollToPoint vs scrollRectToVisible
Re: scrollToPoint vs scrollRectToVisible
- Subject: Re: scrollToPoint vs scrollRectToVisible
- From: Allan Odgaard <email@hidden>
- Date: Wed, 22 Sep 2004 17:50:54 +0200
On 22. Sep 2004, at 8:19, Tim Conkling wrote:
This fixed my problem. However, I don't understand why it worked.
Apple's docs on scrollRectToVisible: say that the method "Scrolls the
receiver’s closest ancestor NSClipView the minimum distance needed so
aRect in the receiver becomes visible in the NSClipView." This sounds
to me like it does exactly what my original code was doing. What am I
missing here?
scrollRectToVisible: does something like:
1) scrollRect:by:
2) setBoundsOrigin:
3) setNeedsDisplayInRect:
4) reflectScrolledClipView:
The method you called in NSClipView probably only does #2.
--
http://macromates.com/ ::: TextMate, OS X text editor
http://macromates.com/sigpipe/ ::: Personal weblog about
programming
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden