Re: NSImageView + NSViewAnimation
Re: NSImageView + NSViewAnimation
- Subject: Re: NSImageView + NSViewAnimation
- From: Brian Amerige <email@hidden>
- Date: Mon, 18 Jun 2007 14:56:17 -0400
Hmm.. I just made a sample app for proof of concept, and well, it
works perfectly: http://brianamerige.com/software/SlidingImageView.zip
I guess it's something local to my app's implementation of it. (It is
a bit more complex, in tabviews and such.)
Brian Amerige: Software at Extendmac
email@hidden | aim - applejustworks
On Jun 18, 2007, at 2:05 PM, Charles Steinman wrote:
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