• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Animated split view collapsing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Animated split view collapsing


  • Subject: Re: Animated split view collapsing
  • From: "John Buckley" <email@hidden>
  • Date: Mon, 24 Apr 2006 11:25:46 +0100

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.

Alternatively you can just make the animation a member variable and
only alloc/release once.

John

--
------------------------
Dr. John Buckley
email@hidden

Mac OS X Tiger
------------------------
 _______________________________________________
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

  • Follow-Ups:
    • Re: Animated split view collapsing
      • From: "Lawrence Sanbourne" <email@hidden>
    • Re: Animated split view collapsing
      • From: Greg Herlihy <email@hidden>
References: 
 >Animated split view collapsing (From: "Lawrence Sanbourne" <email@hidden>)
 >Re: Animated split view collapsing (From: "I. Savant" <email@hidden>)
 >Re: Animated split view collapsing (From: "Lawrence Sanbourne" <email@hidden>)

  • Prev by Date: Re: .Mac support to C/C++ application
  • Next by Date: Re: Animated split view collapsing
  • Previous by thread: Re: Animated split view collapsing
  • Next by thread: Re: Animated split view collapsing
  • Index(es):
    • Date
    • Thread