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 (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