Re: need advice on subclassing NSScrollVIew
Re: need advice on subclassing NSScrollVIew
- Subject: Re: need advice on subclassing NSScrollVIew
- From: Kyle Sluder <email@hidden>
- Date: Fri, 20 Mar 2009 14:24:06 -0400
You have two (32-bit floating point) coordinate systems to work with
here. You have the one defined by your view's bounds, and the one you
use internally to convert values in your domain (seconds) into pixels.
You can set these however you like such that the final transformation
matrix results in drawing at your desired resolution.
This is a bit more involved than just using the view's bounds, but it
is a good way to achieve what you like. If you wanted, you could
forget entirely about the bounds and draw directly at 1:1. Whatever
you do, make sure you disable copy-on-scroll.
--Kyle Sluder
--
--Kyle Sluder
_______________________________________________
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