zooming in an NSView
zooming in an NSView
- Subject: zooming in an NSView
- From: "Stephan" <email@hidden>
- Date: Sun, 12 Aug 2001 09:41:33 +0200
Hello all,
I have a NSView in a NSScrollView.
the NSView (A) has subviews, let's call them B and C.
I would like to be able to zoom the NSView A so that distance between NSViews
B and C change, as well as the estate they can use to be drawn, but I don't
want the content of B and C to be zoomed.
For instance, if B can contain 3 figures (123) and I zoom, I don't want to see
bigger "123" figures but instead I want to be able to display "123456".
In order to zoom view A, I set its bounds rectangle to a factor of its frame
rectangle. but that means that the subviews keep the same coordinates and size
and I can't tell if the superview is zoomed.
What I would like is to have the bounds of the zoomed view's subviews refrlect
the size they cover in their parent window coordinate system.
Suggestion anyone?
Thanks in advance for the help.
Stephan