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

Re: NSImageView and ZoomFactors


  • Subject: Re: NSImageView and ZoomFactors
  • From: Brian Postow <email@hidden>
  • Date: Thu, 19 Aug 2010 15:44:54 -0400

On Aug 19, 2010, at 2:33 PM, Quincey Morris wrote:

>
>> How big do I make the imageview? Currently, it's the same size as the clipview.
>
> It doesn't matter what you do in IB, because you're going to have to do something else programmatically later. You basically have 2 modes: zoom to fit, and zoom to scale factor, and there's a difference image view size calculation for each so it must be done manually. Consequently, you probably want to prevent (in IB) the image view from autoresizing.
>

ah, so, the way to zoom is to leave the NSImageView on NSImageScaleProportionallyUpOrDown, and then change the size of the frame! That gives me scrollbars!

I think I now need to add some translation when I zoom so that my image doesn't migrate off the upper right of the screen... Is that the standard way of doing that?


Brian Postow
Senior Software Engineer
Acordex Imaging Systems

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: NSImageView and ZoomFactors
      • From: Quincey Morris <email@hidden>
References: 
 >NSImageView and ZoomFactors (From: Brian Postow <email@hidden>)
 >Re: NSImageView and ZoomFactors (From: Quincey Morris <email@hidden>)
 >Re: NSImageView and ZoomFactors (From: Brian Postow <email@hidden>)
 >Re: NSImageView and ZoomFactors (From: Quincey Morris <email@hidden>)
 >Re: NSImageView and ZoomFactors (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: Trying to capture XML data and convert to a String...
  • Next by Date: UIView antialiasing
  • Previous by thread: Re: NSImageView and ZoomFactors
  • Next by thread: Re: NSImageView and ZoomFactors
  • Index(es):
    • Date
    • Thread