mouseDown: with Core Animation
mouseDown: with Core Animation
- Subject: mouseDown: with Core Animation
- From: Keith Duncan <email@hidden>
- Date: Sat, 2 Feb 2008 01:11:27 +0000
I've been doing shadows for my own controls by insetting the content
and drawing the shadow inside the view's bounds. This has worked fine
but I wreaks havoc when trying to align them.
I decided to use Core Animation for the shadows and simply have my
control draw it's content. One particular view is a calendar which
selects a day in mouseDown:, the code works perfectly without Core
Animation layer backing enabled; however when I enable it random days
are selected instead of the one I intended.
I discovered that the reason behind this was that I got the mouse down
point using convertPointFromBase:, changing this to use
convertPoint:fromView: with a nil view argument (I assumed this was
the same as sending my previous message) works as expected.
Can anyone explain/confirm this behavior?
Thanks,
Keith
_______________________________________________
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