Re: Splitview; keeping one sub-view at constant width when window resizes
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.