Re: Window min/max height trouble
Re: Window min/max height trouble
- Subject: Re: Window min/max height trouble
- From: David Kennedy <email@hidden>
- Date: Mon, 7 Aug 2006 14:07:10 +0100
On 7 Aug 2006, at 13:21, Fredrik Olsson wrote:
I am trying to set a window in IB to only have a resizeable width,
and fixed height. My problem is that IB refuses and always sets the
max-value +1 from the min-value. Having a window that resizes
1pixel is not a pretty sight :).
Is there anything obvious I am missing? Should I set it up in code
instead?
I do this in code, using a window delegate method like this (for
Objective-C):
- (NSSize)windowWillResize:(NSWindow *)sender toSize:(NSSize)
proposedFrameSize
{
return NSMakeSize(proposedFrameSize.width, [sender frame].size.height);
}
Cheers,
Dave
------
David Kennedy (http://www.zenopolis.com)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden