• 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: Springs and struts with splitview
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Springs and struts with splitview


  • Subject: RE: Springs and struts with splitview
  • From: "Phil Barrett" <email@hidden>
  • Date: Tue, 29 Jan 2002 11:55:11 -0000

> > So far as I can say, you have to ensure that programmatically (see the
> > NSSplitView delegate methods to do so).
>
> that only kind of woks. you can make sure the views stay at a certain
> size with the delegate methods when the divider is being dragged, but
> not when the window is being resized because your delegate methods don't
> get called when the window in in resize.

My delegate does get called during resize, because (since we do all our
layout programmatically) I trap windowDidResize: in the window's delegate,
which calls -[NSView setFrame:] on the NSSplitView, which in turn calls its
delegate's splitView:resizeSubviewsWithOldSize: method, wherein I control
the size and position of every subview of the splitter.

Phil


  • Prev by Date: Re: Bug? ".keyboard" NSString returned from [NSFontManager availableFonts]?
  • Next by Date: Re: Visible at launch time?
  • Previous by thread: Re: Springs and struts with splitview
  • Next by thread: NSTableView Data Source problems
  • Index(es):
    • Date
    • Thread