As I recall, this sample code does exactly what you want:
http://developer.apple.com/samplecode/Reducer/
I haven't looked at it for a while, so I may be mistaken.
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests
I'm using the following code to create an animated sliding SplitView
using an NSButton to toggle whether the split view is *up* and you can
see the lower split view, or *down* and the lower split view is
hidden. Here's the code:
- (IBAction)toggleVariables:(id)sender
{
NSSize newSize =