Prevent side subviews of NSSplitView from resizing during window zoom
Prevent side subviews of NSSplitView from resizing during window zoom
- Subject: Prevent side subviews of NSSplitView from resizing during window zoom
- From: Antonio Nunes <email@hidden>
- Date: Wed, 26 Oct 2011 17:46:21 +0200
I use an NSSPlitView with three subviews. The general idea is that when the window is resized, only the middle view resizes. I have this working just fine when dragging the window frame. The split view consults the delegate with splitView:shouldAdjustSizeOfSubview:, and I return YES when the subview is the middle view, and NO when the subview is one of the other views. (It's slightly more complex, due to minimum widths, but that can be ignored here.) When I drag the window frame, the splitView:shouldAdjustSizeOfSubview: is constantly consulted for each view, for the duration of the drag.
When zooming the window by clicking the zoom button though, all subviews are resized. The splitView:shouldAdjustSizeOfSubview: method is consulted only twice during the zoom and the split view goes off and does its own thing anyway.
How can I make the split view behave correctly during window zoom (and entering/exiting full-screen, which shows the same issue)?
-António
----------------------------------------------------
It is better to light a candle than to curse the darkness
----------------------------------------------------
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden