Re: Animated split view collapsing
Re: Animated split view collapsing
- Subject: Re: Animated split view collapsing
- From: Rainer Brockerhoff <email@hidden>
- Date: Tue, 25 Apr 2006 15:21:00 -0300
At 01:12 -0700 25/4/06, email@hidden wrote:
>From: "Lawrence Sanbourne" <email@hidden>
>References: <email@hidden>
> <email@hidden>
> <email@hidden>
> <001901c66820$e13a62e0$6701a8c0@GREGHEPC>
>In-Reply-To: <001901c66820$e13a62e0$6701a8c0@GREGHEPC>
>Date: Mon, 24 Apr 2006 23:42:29 -0500
>Message-ID: <email@hidden>
>
>> In contast, I found RBSplitView's
>> animation (which does not use an NSAnimationView) to be jerkier and suffer
>> from "tearing" when I last tried it out.
>
>In addition, RBSplitView continues drawing the divider when the pane
>is collapsed.
I'd be interested in finding out why NSAnimation is smoother than RBSplitView - I didn't want to use NSAnimation because it's Tiger-only. Any hints or suggestions will be implemented in the next version.
Regarding the last point, with RBSplitView it should be easy to hide the divider after collapsing, implement the following delegate methods:
- (void)hideSubView:(RBSplitSubview*)subview {
[subview setHidden:YES];
}
- (void)splitView:(RBSplitView*)sender didCollapse:(RBSplitSubview*)subview {
[self performSelector:@selector(hideSubView:) withObject:subview afterDelay:0.0];
}
Then call setHidden:NO on the subview before expanding it.
--
Rainer Brockerhoff <email@hidden>
Belo Horizonte, Brazil
"In the affairs of others even fools are wise
In their own business even sages err."
Weblog: http://www.brockerhoff.net/bb/viewtopic.php
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden