• 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: need advice on subclassing NSScrollVIew
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >need advice on subclassing NSScrollVIew (From: John Reppy <email@hidden>)
 >Re: need advice on subclassing NSScrollVIew (From: Graham Cox <email@hidden>)
 >Re: need advice on subclassing NSScrollVIew (From: John Reppy <email@hidden>)

  • Prev by Date: [noob] Best practice for creating multiple instances of a View
  • Next by Date: Is there an icon to represent "select all"?
  • Previous by thread: Re: need advice on subclassing NSScrollVIew
  • Next by thread: Re: need advice on subclassing NSScrollVIew
  • Index(es):
    • Date
    • Thread