small medium large xlarge

12 Dec 2008, 22:31
Steve Finkelstein (22 posts)

Hey all, and Bill! :-)

Just going through my reading here and wanted a bit more insight into what exactly the following excerpt of code does:

- (void)keyDown:(NSEvent *)event {
    [[mover animator] setFrameRotation:[mover frameRotation]];


Does that simply set the instance of NSImageView back to its original coordinate system within its superview as it was prior to the keyDown event happening?

Thanks for the explanation!


12 Dec 2008, 23:13
Bill Dudney (916 posts)

Hey Steve,

Well really its just a way to tweak the frameRotation property and invoke the animation.

So in the end there is no coordinate system transformation at all but the animation will still be invoked.


You must be logged in to comment