Re: Controlling Zoom size
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