Re: NSWindow - how to resize it keeping aspect ratio?
Re: NSWindow - how to resize it keeping aspect ratio?
- Subject: Re: NSWindow - how to resize it keeping aspect ratio?
- From: Ariel Feinerman <email@hidden>
- Date: Thu, 25 Feb 2010 14:57:43 +0200
Alexander,
And it works perfectly for me. 674 x 422 - is my original content view size,
> defined in IB.
You calculate view`s aspect from it size, but I mean content frame (not
window frame) from constant aspect, for example 4/3, then set size.
> Unfortunately IB operates by window's content view size, whereas the
> message above operates by window's frame size, which is not the same.
> Therefore it's required to recalculate the size between window frame and
> content view sizes, if we have a care about content view aspect ratio
> keeping.
>
There is neither techinque for setting window`s frame itself, nor message
for setting content view aspect.
Thank you for your code, maybe it will be helpful
_______________________________________________
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