• 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: How do you set a fixed-width window in Interface Builder 2.5.4?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do you set a fixed-width window in Interface Builder 2.5.4?


  • Subject: Re: How do you set a fixed-width window in Interface Builder 2.5.4?
  • From: Alastair Houghton <email@hidden>
  • Date: Fri, 20 Jul 2007 11:42:04 +0100

On 20 Jul 2007, at 11:22, Stéphane Sudre wrote:

Some versions ago, InterfaceBuilder decided it knew better than the developer how to set the min and max width of a window. Thus preventing the developer to set the same value for min and max width.

Yes, this has been annoying me for ages. I thought I'd mis- remembered that this was possible in previous versions. Apparently not; have you filed a bug report on this? (If so, what's the number... I'll file another and refer to yours.)


Since this is needed if you want to have a window with a fixed width but a variable height, how are we supposed to set a fixed- width in Interface Builder?

It can't be done easily with code if you consider the width value can change depending on the localization.

What about this?

  NSSize minSize = [myWindow minSize], maxSize = [myWindow maxSize];
  minSize.width = maxSize.width;

Seems easy enough to me, even if it is *really annoying* that Interface Builder won't let you do this.

Kind regards,

Alastair.

--
http://alastairs-place.net


_______________________________________________ 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: 
 >How do you set a fixed-width window in Interface Builder 2.5.4? (From: Stéphane Sudre <email@hidden>)

  • Prev by Date: How do you set a fixed-width window in Interface Builder 2.5.4?
  • Next by Date: Re: replacement for CW compare?
  • Previous by thread: How do you set a fixed-width window in Interface Builder 2.5.4?
  • Next by thread: Re: How do you set a fixed-width window in Interface Builder 2.5.4?
  • Index(es):
    • Date
    • Thread