Re: display a section of view zoomed
Re: display a section of view zoomed
- Subject: Re: display a section of view zoomed
- From: Jens Alfke <email@hidden>
- Date: Fri, 23 Mar 2012 18:30:18 -0700
On Mar 23, 2012, at 6:05 PM, Timothy Reaves wrote:
> I have a subclass of NSView, and draw into using CoreGraphics. I'd like to
> add a second view (not NSScrollView) to display a zoomed section of the
> primary view.
You’ll need a second instance of the same view class, displaying the same model. Make its bounds rect smaller than its frame, and the contents will be scaled up by the same proportion when drawn.
—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