• 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: Controlling Zoom size
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Controlling Zoom size


  • Subject: Re: Controlling Zoom size
  • From: glenn andreas <email@hidden>
  • Date: Wed, 25 Jan 2006 14:19:28 -0600


On Jan 25, 2006, at 2:11 PM, Brant Sears wrote:

I have a Window that contains video content and I am currently using the delegate method - (NSSize)windowWillResize:(NSWindow *) sender toSize:(NSSize)proposedFrameSize to control the resizing of the window so that the content is not shown at an incorrect aspect ratio. However, zooming the window causes the aspect ratio to become incorrect.



Why not just use NSWindow's - (void)setContentAspectRatio:(NSSize)ratio;

That is suppose to handle constraining the aspect ratio (the willResize, as you've seen, is only done for user-manual resizing)



Glenn Andreas                      email@hidden
 <http://www.gandreas.com/> wicked fun!
quadrium | build, mutate, evolve | images, textures, backgrounds, art

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


  • Follow-Ups:
    • RE: Controlling Zoom size
      • From: "Brant Sears" <email@hidden>
References: 
 >Controlling Zoom size (From: "Brant Sears" <email@hidden>)

  • Prev by Date: Controlling Zoom size
  • Next by Date: Re: Something faster than [NSImage drawInRect:...]?
  • Previous by thread: Controlling Zoom size
  • Next by thread: RE: Controlling Zoom size
  • Index(es):
    • Date
    • Thread