So this almost provides the answer. I made a subclass and in there override 
setRotationAngle:centerPoint: but this triggers for every mouse movement, 
rather than for an accumulated drag from the user. I then tried to override 
mouseUp with the plan to set a flag didRotate in setRotationAngle:centerPoint: 
and then send a delegate message or notification on mouseUp, then reset the 
flag. Unfortunately IKImageView doesn't receive a mouseUp: when rotating. This 
works for moving the image, but not rotating. So I guess for now I will try to 
live with the many messages to the delegate, but I would have liked to quantise 
this at the level of the user's action, so bracketed by mouseDown: and 
mouseUp:. If anyone has any ideas how this might be achieved, I'd be happy to 
hear them.

Cheers,

Martin

On Sep 13, 2011, at 11:23 AM, Andy Lee wrote:

> On Sep 13, 2011, at 5:39 AM, Martin Hewitson wrote:
>> Great, thanks. Unfortunately there isn't a callback for rotation of the 
>> image.
> 
> Would it work to override setRotationAngle:centerPoint:? And maybe 
> rotateImageLeft: and rotateImageRight:?
> 
> --Andy
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Martin Hewitson
Albert-Einstein-Institut
Max-Planck-Institut fuer 
    Gravitationsphysik und Universitaet Hannover
Callinstr. 38, 30167 Hannover, Germany
Tel: +49-511-762-17121, Fax: +49-511-762-5861
E-Mail: martin.hewit...@aei.mpg.de
WWW: http://www.aei.mpg.de/~hewitson
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~





_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please 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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to