• 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: NSWindow - how to resize it keeping aspect ratio?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: NSWindow - how to resize it keeping aspect ratio?
      • From: "Alexander Bokovikov" <email@hidden>
    • Re: NSWindow - how to resize it keeping aspect ratio?
      • From: vinai <email@hidden>
References: 
 >NSWindow - how to resize it keeping aspect ratio? (From: "Alexander Bokovikov" <email@hidden>)
 >Re: NSWindow - how to resize it keeping aspect ratio? (From: Eric Gorr <email@hidden>)
 >Re: NSWindow - how to resize it keeping aspect ratio? (From: Ariel Feinerman <email@hidden>)
 >Re: NSWindow - how to resize it keeping aspect ratio? (From: Alexander Bokovikov <email@hidden>)

  • Prev by Date: Re: NSWindow - how to resize it keeping aspect ratio?
  • Next by Date: Re: NSWindow - how to resize it keeping aspect ratio?
  • Previous by thread: Re: NSWindow - how to resize it keeping aspect ratio?
  • Next by thread: Re: NSWindow - how to resize it keeping aspect ratio?
  • Index(es):
    • Date
    • Thread