small medium large xlarge

Icon_256x256_pragsmall
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]];
}

</code>

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!

/sf

Biopic_100x100_pragsmall
12 Dec 2008, 23:13
Bill Dudney (917 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.

HTH!

You must be logged in to comment