Custom NSImageView with CALayer for Selection Rect not Scaling...
Custom NSImageView with CALayer for Selection Rect not Scaling...
- Subject: Custom NSImageView with CALayer for Selection Rect not Scaling...
- From: "Peters, Brandon" <email@hidden>
- Date: Sat, 11 Oct 2014 15:53:27 +0000
- Thread-topic: Custom NSImageView with CALayer for Selection Rect not Scaling...
Hello,
I have a custom NSImageView with layer-backing and CALayer sublayers for drawing the selection rectangle. All of this is embedded in a NSScrollView with magnification enabled. When I zoom in or out the image in the image view “scales” but the selection rectangle does not and “stays” where it was originally draw. Is there a to get the selection rect CALayers to scale with the image (or image view)?
_______________________________________________
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