Re: Drawing: The Right place to keep bounds
Re: Drawing: The Right place to keep bounds
- Subject: Re: Drawing: The Right place to keep bounds
- From: Jens Alfke <email@hidden>
- Date: Wed, 25 Nov 2009 09:03:30 -0800
On Nov 25, 2009, at 8:40 AM, Paul Bruneau wrote:
> I guess this is what you mean by "a bounding box transformed into view coordinates". Yes, that is the way I am thinking of it, so that I can do things like hit-testing in however many views my user might have open. So OK I will start thinking about a parallel per-view model.
You probably don't even need parallel models unless you're doing something fancy. More typically you just do all the work you can in model coordinates. You transform points to view coords when drawing, and you transform mouse positions to model coords when handling events.
—Jens_______________________________________________
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