Re: NSImageView + NSViewAnimation
Re: NSImageView + NSViewAnimation
- Subject: Re: NSImageView + NSViewAnimation
- From: Charles Steinman <email@hidden>
- Date: Mon, 18 Jun 2007 11:05:16 -0700 (PDT)
Is the NSImageView actually never added to a window,
or was that omitted?
Cheers,
Chuck
--- Brian Amerige <email@hidden> wrote:
> 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
____________________________________________________________________________________
Building a website is a piece of cake. Yahoo! Small Business gives you all the tools to get online.
http://smallbusiness.yahoo.com/webhosting
_______________________________________________
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