Skip navigation.
 
mlNSWindow CoreAnimation Delegate not being called
FROM : Milen Dzhumerov
DATE : Sat May 24 13:11:26 2008

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

Related mailsAuthorDate
mlNSWindow CoreAnimation Delegate not being called Milen Dzhumerov May 24, 13:11
mlRe: NSWindow CoreAnimation Delegate not being called Peter Burtis May 25, 06:11
mlRe: NSWindow CoreAnimation Delegate not being called Peter Burtis May 25, 06:28