• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Window min/max height trouble
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


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

  • Prev by Date: Window min/max height trouble
  • Next by Date: Re: Xcode operations aren't synchronous (was: Re: crashes after changing signatures of virtual functions / virtual inherited classes)
  • Previous by thread: Window min/max height trouble
  • Next by thread: Re: New to Carbon - a few questions
  • Index(es):
    • Date
    • Thread