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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to