• 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: NSScrollView: Scrollers invisible under Mac OS X 10.6
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSScrollView: Scrollers invisible under Mac OS X 10.6


  • Subject: Re: NSScrollView: Scrollers invisible under Mac OS X 10.6
  • From: Kyle Sluder <email@hidden>
  • Date: Tue, 1 Sep 2009 21:58:27 -0700

On Sep 1, 2009, at 9:30 PM, Matthias Arndt <apple-dev@arndt- family.com> wrote:

(1.) using "scaleUnitSquareToSize" of the clip view (leaving the coordination system of the custom view untouched) or

Where did you hear about this technique? I don't know if it's guaranteed to work. The next time the scroll view tiles or does some other thing it might be very confused.


For some reason Apple actively avoids describing the actual machinations of NSClipView. When I first encountered NSScrollView I was very confused. All the documentation said was that NSClipView set itself up in such a way that it displayed only a portion of its document view. Describing that configuration would probably do a lot to demystify the relationship between bounds and frame for a lott of newcomers.

(2.) changing the bounds / frame of the custom view and handling the scaling in the custom view's drawRect:

You shouldn't need to do anything special in drawRect. If you need to draw anything at the screen resolution, as opposed to scaled by the bounds transformation, then you'll want to avoid scaling altogether and have a custom zoom factor. Only then will drawRect need to handle scaling.


--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: 
 >NSScrollView: Scrollers invisible under Mac OS X 10.6 (From: Matthias Arndt <email@hidden>)
 >Re: NSScrollView: Scrollers invisible under Mac OS X 10.6 (From: Kyle Sluder <email@hidden>)
 >Re: NSScrollView: Scrollers invisible under Mac OS X 10.6 (From: Matthias Arndt <email@hidden>)

  • Prev by Date: Re: NSScrollView: Scrollers invisible under Mac OS X 10.6
  • Next by Date: Re: NSScrollView: Scrollers invisible under Mac OS X 10.6
  • Previous by thread: Re: NSScrollView: Scrollers invisible under Mac OS X 10.6
  • Next by thread: Re: NSScrollView: Scrollers invisible under Mac OS X 10.6
  • Index(es):
    • Date
    • Thread