NSImageView + NSViewAnimation
NSImageView + NSViewAnimation
- Subject: NSImageView + NSViewAnimation
- From: Brian Amerige <email@hidden>
- Date: Sun, 17 Jun 2007 14:27:42 -0400
Hey there list,
I've got an NSImageView (anImageView) I want to animate. It draws
just fine initially, but the animation doesn't appear to do anything.
NSRect anImageViewFrame = [anImageView frame];
anImageViewFrame.origin.x -= anImageViewFrame.size.width; //Yes, the
width is larger than zero.
NSDictionary *anImageViewAnimationDictionary = [NSDictionary
dictionaryWithObjectsAndKeys:anImageView, NSViewAnimationTargetKey,
[NSValue valueWithRect:anImageViewFrame], NSViewAnimationEndFrameKey,
nil];
NSViewAnimation *anImageViewAnimation = [[NSViewAnimation alloc]
initWithViewAnimations:[NSArray
arrayWithObject:anImageViewAnimationDictionary]];
[anImageViewAnimation startAnimation];
[anImageViewAnimation release];
Anything obvious I'm missing as to why this isn't moving?
Brian Amerige: Software at Extendmac
email@hidden | aim - applejustworks
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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