I have created a test project to try and find the problem I'm having with
ScrollRect (outside of my large project). You can find it at
Any help would be great, I'm in a real bind without it.
If you run the application and pan from the bottom right to top left, it
(scrollrect) works, but if you pan from bottom left to top right it doesn't
work. If X and Y are the same sign it will not work. Strange.
in article [email]20030818185929841-0700news.la.sbcglobal.net[/email], matt neuburg at
[email]matttidbits.com[/email] wrote on 8/18/03 6:58 PM:
> In <BB66C1E8.3E36%nospamnospam.org> Tim R Johnson wrote:
>>>> Here is an example of some code that does not work properly...
>> NSSize deltaSize;
>> deltaSize.width = 3;
>> deltaSize.height = 3;
>> [self scrollRect:[self bounds] by:deltaSize];
> I am looking at the docs. They say that the way you use this methods is
> like this:
> 1. Invoke scrollRect:by: to copy the rendered image.
> 2. Move the view object's origin or scroll it within its superview.
> 3. Calculate the newly exposed rectangles and invoke either
> setNeedsDisplay: or setNeedsDisplayInRect: to draw them.
> Where's 2 and 3? m.