Re: disable manual resizing of NSWindow
Re: disable manual resizing of NSWindow
- Subject: Re: disable manual resizing of NSWindow
- From: Jean-Daniel Dupas <email@hidden>
- Date: Wed, 18 Jun 2008 15:35:09 +0200
Le 18 juin 08 à 15:15, Angelo Chen a écrit :
Hi,
Is there a way to do following:
In a NSWindow, I'd like to disable manual resizing(don't allow user
to drag the lower right corner to resize the window), only by
clicking 'max' and 'restore' icons, possible? the reason is, I put a
QuickTIme's movieview in the window and the preserving aspect ratio
is on, manual resizing will not do good.
Thanks,
Angelo
You can implements the windowWillResize:toSize: delegate method.
Alternatively, you can force the window aspect ratio using -[NSWindow
setAspectRatio:];
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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