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 PROTECTED]
740.590.0009
_______________________________________________
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]