Zooming in an NSView

Posted by jasonbogd on Stack Overflow See other posts from Stack Overflow or by jasonbogd
Published on 2010-03-15T01:31:19Z Indexed on 2010/03/15 1:39 UTC
Read the original article Hit count: 568

Hi,

I have an NSView in which the user can draw circles. These circles are stored as an array of NSBezierPaths, and in drawRect:, I loop through the array and call -stroke on each of the paths. How do I add a button to zoom in and out the NSView? Just change the bounds of the view?

Thanks.

© Stack Overflow or respective owner

Related posts about appkit

Related posts about cocoa