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 12:17:59 +0200
Hi,
there is of the matter is that -setAspectRatio: sets the window`s aspect
ratio, but when window has been loaded from nib and not resized yet, its
size is taken from "content size" that was written in IB with it own aspect.
Then when window has been resized it instantly get size to conform aspect.
Can you suggest something?
2010/2/18 Eric Gorr <email@hidden>
>
> On Feb 18, 2010, at 1:55 PM, Alexander Bokovikov wrote:
>
> > Hi, All,
> >
> > I'm sorry if this is a stupid question, but I don't see an evident
> answer... I need the subj, but don't see appropriate NSWindow method... Am I
> missing something?
>
> You could check out NSWindow's setAspectRatio or setContentAspectRatio.
>
> These are discussed in NSWindow's programming guide.
>
> _______________________________________________
>
> 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
>
--
best regards
Ariel
_______________________________________________
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