Changeset [fcc11b8969629738488bb6b6787f38bba642af6f] by Alexander Ljungberg
Revision fcc11b8969629738488bb6b6787f38bba642af6f,
committed by Alexander Ljungberg
· July 3rd, 2012 @ 02:53 AM
Fixes #1559. Nested split view autosave and better override support.
Nested split views now correctly restore their divider positions by restoring "top down". E.g. a nesting split view is restored before the nested split view so that the nested split view has the correct frame size for the position it is restoring.
This commit also makes it easier to override autosave restores
in a subclass or a controller's viewDidLoad. Now if
setPosition:ofDividerAtIndex: is called after the
split view's initWithCoder: has finished, but before
the final autosave restore has occurred, the autosave restore is
cancelled. This preserves whatever the modification the programmer
intended to make instead of overwriting it with the autosaved
position.
This commit also fixes a bug where an autosaved position would
not be restored, or would be restored at an unexpected time, if
setFrameSize: was not sent to the split view shortly
after its initWithCoder:. (Such a
setFrameSize: message is often sent due to a window
setFullPlatformWindow: call in
AppController.j's awakeFromCib, but it's
not necessarily sent.)
https://github.com/cappuccino/cappuccino/commit/fcc11b8969629738488...
1 changed file
-
M
AppKit/CPSplitView.j