• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Drawing: The Right place to keep bounds
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Drawing: The Right place to keep bounds (From: Paul Bruneau <email@hidden>)
 >Re: Drawing: The Right place to keep bounds (From: Jens Alfke <email@hidden>)
 >Re: Drawing: The Right place to keep bounds (From: Paul Bruneau <email@hidden>)

  • Prev by Date: Re: NSOutlineView - How to hide disclosure triangle for root nodes ?
  • Next by Date: Re: URLWithString fails to fails with bad string
  • Previous by thread: Re: Drawing: The Right place to keep bounds
  • Next by thread: Re: Drawing: The Right place to keep bounds
  • Index(es):
    • Date
    • Thread