* Added MYReturnError.
* Better iPhone support in ExceptionUtils.
* Make sure "All Tests Passed/Failed" message is always logged.
2 // MYAnimatingSplitView.h
5 // Created by Jens Alfke on 7/10/08.
6 // Copyright 2008 Jens Alfke. All rights reserved.
9 #import <AppKit/NSSplitView.h>
12 @interface MYAnimatingSplitView : NSSplitView
14 NSTimeInterval _animationTime;
19 /** The maximum time it will take to animate the divider. (Actual time depends on distance moved.) */
20 @property NSTimeInterval animationTime;
22 /** Pixel position of the divider (in the splitview's bounds' coordinate system.)
23 Setting this property animates the divider to the new position. */
24 @property float dividerPosition;
26 /** Position of the divider, scaled to the range [0..1]. */
27 @property float dividerFractionalPosition;
29 - (void) collapseSubviewAtIndex: (int)index;
30 - (void) collapseSubviewAtIndex: (int)index animate: (BOOL)animate;
32 /** Returns YES while the splitview itself is being resized (i.e. while the window
33 is resizing, or a parent splitview is moving its divider.) */
34 @property (readonly) BOOL isLiveResizing;
39 @interface NSObject (MYAnimatingSplitViewDelegate)
40 /** If the delegate implements this method, it will be called when the splitview
41 begins and ends live resizing. */
42 - (void)splitView: (NSSplitView*)splitView inLiveResize: (BOOL)inLiveResize;