Re: Animated split view collapsing
Re: Animated split view collapsing
- Subject: Re: Animated split view collapsing
- From: "Lawrence Sanbourne" <email@hidden>
- Date: Mon, 24 Apr 2006 09:01:17 -0500
On 4/24/06, John Buckley <email@hidden> wrote:
> On 23/04/06, Lawrence Sanbourne <email@hidden> wrote:
> > Thanks for the help. Here's what I get when the code runs:
> >
> > NSViewAnimation *animation = [[NSViewAnimation alloc]
> > initWithViewAnimations:[NSArray arrayWithObject:windowResize]];
> > [animation setAnimationBlockingMode:NSAnimationBlocking];
> > [animation setDuration:0.5];
> > [animation startAnimation];
> > [animation release];
>
> Don't release the animation here; it will be dealocated. Make your
> controller the animation's delegate and then release it in the
> animationDidEnd: and animationDidStop: delegate methods.
I'm using NSAnimationBlocking mode, so releasing the animation here
will not be a problem.
Larry
_______________________________________________
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