• 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: CALayer resizing puzzle
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >CALayer resizing puzzle (From: vincent habchi <email@hidden>)
 >Re: CALayer resizing puzzle (From: Scott Anguish <email@hidden>)
 >Re: CALayer resizing puzzle (From: Scott Anguish <email@hidden>)
 >Re: CALayer resizing puzzle (From: vincent habchi <email@hidden>)
 >Re: CALayer resizing puzzle (From: douglas welton <email@hidden>)

  • Prev by Date: Re: How to avoid launching the same application multiple times?
  • Next by Date: Re: NSTabViewDelegate
  • Previous by thread: Re: CALayer resizing puzzle
  • Next by thread: Re: CALayer resizing puzzle
  • Index(es):
    • Date
    • Thread