Re: CALayer resizing puzzle
Re: CALayer resizing puzzle
- Subject: Re: CALayer resizing puzzle
- From: vincent habchi <email@hidden>
- Date: Fri, 22 Jan 2010 15:37:31 +0100
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 (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