Re: Constraining window resize?
Re: Constraining window resize?
- Subject: Re: Constraining window resize?
- From: petite_abeille <email@hidden>
- Date: Fri, 28 Mar 2003 14:01:12 +0100
On Friday, Mar 28, 2003, at 13:54 Europe/Zurich, petite_abeille wrote:
What would be a good way to constrain a window size?
Ooops ... never mind... NSWindow has just what I need:
setResizeIncrements:
- (void) setResizeIncrements: (NSSize) increments
Restricts the user's ability to resize the receiver so the width and
height change by multiples of increments.width and increments.height as
the user resizes the window. The width and height increments should be
whole numbers, 1.0 or greater. Whatever the current resize increments,
you can set an NSWindow's size to any height and width programmatically.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.