• 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
Re: Selecting objects, help needed...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Selecting objects, help needed...


  • Subject: Re: Selecting objects, help needed...
  • From: Charles Jolley <email@hidden>
  • Date: Mon, 13 Aug 2001 23:48:50 -0500

As far as the zoom problem goes, say you want to zoom your view to 200%. You could just double the frame size (the bounds will be automatically doubled as well) and then multiply the coordinates that each graphic is drawn it by 2. That way, the graphics will be drawn at the same size, but there will be twice as much space and they will be separated by twice as great a distance.

Another approach I have used that works very well is to divide the size of the bounds for your topmost view by your scale factor. For example, to zoom to 200%, set the bounds to their current setting divided by two. If you are using a ScrollView, you should do this with the ClipView. See the TextEdit example for sample code on this.

Cheers,
-Charles


References: 
 >Re: Selecting objects, help needed... (From: Brian Webster <email@hidden>)

  • Prev by Date: flavorTypeHFS with Cocoa
  • Next by Date: UDP and CFSocket
  • Previous by thread: Re: Selecting objects, help needed...
  • Next by thread: Flipped image dragging - bug or feature?
  • Index(es):
    • Date
    • Thread