• 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: Splitview; keeping one sub-view at constant width when window resizes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Splitview; keeping one sub-view at constant width when window resizes


  • Subject: Re: Splitview; keeping one sub-view at constant width when window resizes
  • From: mmalcolm crawford <email@hidden>
  • Date: Mon, 1 Dec 2003 13:23:11 -0800

On Dec 1, 2003, at 11:43 AM, Michael Rothwell wrote:

I have a vertical split-view containing two NSTableViews. When the window resizes, the split-view resizes as well. I would like for the left-hand frame in the split view to remain a constant width, unless the handle is moved by the user. I can't find a way to accomplish this. Any hints?

I would guess, implement:
- (void)splitView:(NSSplitView *)sender resizeSubviewsWithOldSize:(NSSize)oldSize
<http://developer.apple.com/documentation/Cocoa/Reference/ ApplicationKit/ObjC_classic/Classes/NSSplitView.html>

If necessary also implement the window's windowWillResize:toSize: and windowDidResize: delegate methods to flag that a window resize is taking place.
<http://developer.apple.com/documentation/Cocoa/Reference/ ApplicationKit/ObjC_classic/Classes/NSWindow.html>

mmalc
_______________________________________________
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: 
 >Splitview; keeping one sub-view at constant width when window resizes (From: Michael Rothwell <email@hidden>)

  • Prev by Date: Re: Drawing complex vector shapes
  • Next by Date: Re: Drawing complex vector shapes
  • Previous by thread: Re: Splitview; keeping one sub-view at constant width when window resizes
  • Next by thread: Drawing complex vector shapes
  • Index(es):
    • Date
    • Thread