Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Window min/max height trouble




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:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden
References: 
 >Window min/max height trouble (From: Fredrik Olsson <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.