• 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
NSWindow CoreAnimation Delegate not being called
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSWindow CoreAnimation Delegate not being called


  • Subject: NSWindow CoreAnimation Delegate not being called
  • From: Milen Dzhumerov <email@hidden>
  • Date: Sat, 24 May 2008 12:11:26 +0100

Hi all,

I've been playing with CA and I tried to set up one my objects as the delegate for the frame change animation for an NSWindow by using the following code:

CABasicAnimation* anim = [window animationForKey:@"frame"];
anim.delegate = self;
[[window animator] setFrame:NSMakeRect(400, 500, 500, 500) display:YES];

Using this, the window correctly animates but the delegate methods (namely animationDidStop:finished: and animationDidStart:) for the CAAnimation do not get called. When I use the exact same piece of code for setting the delegate of view animations, the delegates do get called.

Thanks,
M

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: NSWindow CoreAnimation Delegate not being called
      • From: Peter Burtis <email@hidden>
  • Prev by Date: Re: How to tell if iTunes is running.
  • Next by Date: Re: Quit iTunes
  • Previous by thread: Re: Quit iTunes
  • Next by thread: Re: NSWindow CoreAnimation Delegate not being called
  • Index(es):
    • Date
    • Thread