Douglas, > Have you checked the values of dx and dy in the debugger? Shouldn't those > variables be declared as CGFloats as opposed to int?
That's correct, but it does not matter since the int is automatically converted to float/double. Actually this part of code works like a charm. You click, the image moves all right. Then you let go the mouse button, and nothings happens since I have explicitly removed any layer layout constraints (the layer is shifted and remains where you "left" it). But you're right, I've not yet looked at the autoresizingMask. Maybe I should do that, I'll keep you posted – privately, since I think this is out of scope now, and I've another puzzling question to ask. Cheers and thanks a lot for your help, Vincent _______________________________________________ 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