• 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
zooming in an NSView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Reading compiled applescript from file
  • Next by Date: Re: Newbie Window/Scrolling Question
  • Previous by thread: Reading compiled applescript from file
  • Next by thread: "Unknown class in nib file..."
  • Index(es):
    • Date
    • Thread