• 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: NSDrawer absolute sizing in IB
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSDrawer absolute sizing in IB


  • Subject: Re: NSDrawer absolute sizing in IB
  • From: Andrew Mortensen <email@hidden>
  • Date: Fri, 1 Feb 2002 23:39:31 -0500 (EST)

[ myDrawer setContentSize: NSMakeSize( x, y ) ];

There's a bug in the IB implementation of NSDrawer. The sizes you
stipulate are forgotten. You have to do it in code. I generally call the
above line in awakeFromNib, but there's nothing stopping you from resizing
it almost anywhere else, should you feel the need to resize the drawer
again.

andrew

On Sat, 2 Feb 2002, Allan Odgaard wrote:

> Hi again,
>
> Is there any way to set a fixed size for a drawer in IB? I have tried to
> set both the min and max height, but they have no effect on the
> calculated size -- if I have to set the sie programmatically, must I
> then also instantiate the drawer myself, to avoid IB's nib-logic from
> resizing the drawer when e.g. the parent window is resized?
> _______________________________________________
> 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.


References: 
 >NSDrawer absolute sizing in IB (From: Allan Odgaard <email@hidden>)

  • Prev by Date: Connecting standard output to an NSTextView
  • Next by Date: Re: reading in text files
  • Previous by thread: NSDrawer absolute sizing in IB
  • Next by thread: Splitview: Collapse on doubleclick?
  • Index(es):
    • Date
    • Thread