• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: ikimageview delegate
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ikimageview delegate


  • Subject: Re: ikimageview delegate
  • From: Martin Hewitson <email@hidden>
  • Date: Tue, 13 Sep 2011 17:49:26 +0100

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: email@hidden
WWW: http://www.aei.mpg.de/~hewitson
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~





_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: ikimageview delegate
      • From: Andy Lee <email@hidden>
References: 
 >ikimageview delegate (From: Martin Hewitson <email@hidden>)
 >Re: ikimageview delegate (From: "email@hidden" <email@hidden>)
 >Re: ikimageview delegate (From: Martin Hewitson <email@hidden>)
 >Re: ikimageview delegate (From: Andy Lee <email@hidden>)

  • Prev by Date: Task dispatching
  • Next by Date: Re: Task dispatching
  • Previous by thread: Re: ikimageview delegate
  • Next by thread: Re: ikimageview delegate
  • Index(es):
    • Date
    • Thread