• 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 and resizing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Zooming and resizing


  • Subject: Zooming and resizing
  • From: David Dunham <email@hidden>
  • Date: Thu, 27 Apr 2006 20:35:22 -0700

I've got a popup menu that can scale a scrollable view. I think I understand how this works, by changing the relative size of bounds compared to frame.

But what I'd like to do is scale while not resizing the scrollable view's width. (Circus Ponies Notebook does something like this -- it will rewrap text to fit, based on the new scale and the same number of screen pixels to fit to).

My hierarchy is:

ScalingScrollView
  NSClipView
    MyView

And I want a 2x magnification to change

+----+
| x  |
| y  |
+----+

to

+----+
|  xx|
|  xx|
|  yy|
|  yy|
+----+

(height changes, width doesn't, contents is scaled)

I haven't quite figured out how to make this work. Or been able to locate sample code.

------------
David Dunham email@hidden http://www.pensee.com/dunham/
"No matter how far you have gone on a wrong road, turn back." - Turkish proverb


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: Displaying fixed point in XCode debugger
  • Next by Date: named initialization of structs in a .cpp file
  • Previous by thread: Problems building a Universal Binary that works on Panther and Tiger
  • Next by thread: named initialization of structs in a .cpp file
  • Index(es):
    • Date
    • Thread