NSWindow CoreAnimation Delegate not being called
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