• 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: Resizing NSSplitView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Resizing NSSplitView


  • Subject: Re: Resizing NSSplitView
  • From: Andy Lee <email@hidden>
  • Date: Thu, 1 Aug 2002 23:36:20 -0400

At 1:23 PM +0200 8/1/02, Sylvain Leroux wrote:
According to the doc:
> Programmatically, you adjust the relative height of subviews
> simply by modifying the frame of each of the subviews.

But that no seems to work...

I think you need to modify the frames of *all* the subviews, in a way that preserves the total size. So if you remove 10 pixels from one subview, you should add 10 pixels to the other. Then call -adjustSubviews so the splitter will redraw correctly.

--Andy
_______________________________________________
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: 
 >Resizing NSSplitView (From: Sylvain Leroux <email@hidden>)

  • Prev by Date: Re: Missing Class in nib.
  • Next by Date: Categories overriding methods
  • Previous by thread: Resizing NSSplitView
  • Next by thread: Re: Private NIBs?
  • Index(es):
    • Date
    • Thread