Re: Hand style movement inside a NSScrollView
Re: Hand style movement inside a NSScrollView
- Subject: Re: Hand style movement inside a NSScrollView
- From: Ben Lachman <email@hidden>
- Date: Sat, 19 Apr 2008 00:56:30 -0400
On Apr 19, 2008, at 12:41 AM, Jens Alfke wrote:
On 18 Apr '08, at 8:59 PM, Ben Lachman wrote:
I tend to like scrollRect:by: for this sort of thing since it
takes a offset to a rect.
But that method just blits pixels around on the screen; it doesn't
actually change the coordinate system of the view. The scroll view
will do the blitting for you automatically when you change its
coordinates via -scrollPoint:.
Looks like I misread Steve's question. Jens is right of course. In
light of rereading the OP correctly though, I think using
[view scrollRectToVisible:NSOffsetRect([view visibleRect], offsetX,
offsetY)];
might work and would make more sense (at least to me) when going back
to the code in a 6 months.
->Ben
--
Ben Lachman
Acacia Tree Software
http://acaciatreesoftware.com
email@hidden
740.590.0009
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden