• 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
mouseDown: with Core Animation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: mouseDown: with Core Animation
      • From: Quincey Morris <email@hidden>
  • Prev by Date: Re: What paradigm behind NSColor's drawing methods?
  • Next by Date: Safari Search Bar
  • Previous by thread: [MEET] Upcoming CocoaHeads Mac Developer Meetings
  • Next by thread: Re: mouseDown: with Core Animation
  • Index(es):
    • Date
    • Thread