• 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: Andy Lee <email@hidden>
  • Date: Tue, 13 Sep 2011 16:55:45 -0400

On Sep 13, 2011, at 3:44 PM, Martin Hewitson wrote:
> Still not sure I understand why mouseUp: is not called,

See "Cocoa Event-Handling Guide" > "Handling Mouse Events" > "Handling Mouse Dragging Operations".

<http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/EventOverview/HandlingMouseEvents/HandlingMouseEvents.html#//apple_ref/doc/uid/10000060i-CH6-SW18>

    With the Application Kit you can take one of two general
    approaches when handling mouse-dragged events.

In the first approach, "The Three-Method Approach", mouseUp: would be called as you expected. From your description it sounds like IKImageView uses this approach when you drag the image.

When you use the mouse to rotate the image, IKImageView uses the second approach, "The Mouse-Tracking Loop Approach", by handling the entire drag sequence, from mouse-down to mouse-up, inside the mouseDown: method. That is why mouseUp: is not called, nor is mouseDragged:.

> but this is probably enough for me to set some flags and implement some decent delegate messages from my subclass.

Yup, I think you'll be able to figure it out.

--Andy

_______________________________________________

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

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>)
 >Re: ikimageview delegate (From: Martin Hewitson <email@hidden>)
 >Re: ikimageview delegate (From: Andy Lee <email@hidden>)
 >Re: ikimageview delegate (From: Martin Hewitson <email@hidden>)

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