Re: NSImageView + NSViewAnimation
Re: NSImageView + NSViewAnimation
- Subject: Re: NSImageView + NSViewAnimation
- From: Brian Amerige <email@hidden>
- Date: Mon, 18 Jun 2007 13:51:14 -0400
Nope -- this is all programatically created:
NSImageView *imageView = [[NSImageView alloc]
initWithFrame:imageViewFrame]; //imageViewFrame is a valid frame.
[imageView setImage:aValidImage];
[imageView display];
imageViewFrame.origin.x -= imageViewFrame.size.width;
NSDictionary *imageViewAnimation = [NSDictionary
dictionaryWithObjectsAndKeys:imageView, NSViewAnimationTargetKey,
[NSValue valueWithRect:imageViewFrame], NSViewAnimationEndFrameKey,
nil];
NSViewAnimation *viewAnimation = [[NSViewAnimation alloc]
initWithViewAnimations:[NSArray arrayWithObject:imageViewAnimation]];
[viewAnimation startAnimation];
[viewAnimation release];
Brian Amerige: Software at Extendmac
email@hidden | aim - applejustworks
On Jun 18, 2007, at 1:45 PM, Sam Stigler wrote:
Just a shot in the dark here... did you select the custom
NSImageView subclass in IB?
Sam
On Jun 19, 2007, at 3:40 AM, Brian Amerige wrote:
I just subclassed NSImageView to override drawRect: and it's not
being called at all. Which is definitely surprising, because it is
initially drawing.
I'll take a closer look, something doesn't seem right here.
Brian Amerige: Software at Extendmac
email@hidden | aim - applejustworks
On Jun 18, 2007, at 11:21 AM, Andreas Mayer wrote:
Am 18.06.2007 um 16:24 Uhr schrieb Shawn Erickson:
Nope. When you send an animation "startAnimation" it retains
itself until after it is done animating.
"The receiver retains itself and is then autoreleased at the end
of the animation or when it receives stopAnimation."
Ah, sorry. I didn't remember that part; should've read the docs
before commenting.
Unfortunately I have no idea what else might stop the animation
from working.
Did you check if the view gets send a drawRect: message?
Andreas
_______________________________________________
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:
40extendmac.com
This email sent to email@hidden
_______________________________________________
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:
40mac.com
This email sent to email@hidden
_______________________________________________
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