• 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: Core Animation layer-backed NSViews and mouse handling
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Core Animation layer-backed NSViews and mouse handling


  • Subject: Re: Core Animation layer-backed NSViews and mouse handling
  • From: Scott Anguish <email@hidden>
  • Date: Tue, 8 Apr 2008 13:20:36 -0400

don't work with the layer directly when you have layer-backed views

only do it when you are using layer-hosting views




On Apr 8, 2008, at 8:30 AM, Manfred Schwind wrote:
Hi,

I have a layer-backed NSView, say an NSButton (or a complete view hierarchy with many controls), and I am transforming - moving, rotating, etc. - its layer around. Now when I try to click the NSButton at its currently "visible" position, drawn by the CALayer, it does not work. I have to click into the area where the NSButton originally was, before transforming its layer.

Is there an easy way to get this working as expected? Without re- implementing the whole mouse handling of all affected views by myself?

I know that the mouse handling works when rotating a button with setFrameRotation, so Cocoa may internally be prepared for this kind situation. Would be really great if this would also work for general transformations done by CALayers.

_______________________________________________

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: 
 >Core Animation layer-backed NSViews and mouse handling (From: Manfred Schwind <email@hidden>)

  • Prev by Date: Core Data with NSArrayController Confusion
  • Next by Date: Re: Core Data with NSArrayController Confusion
  • Previous by thread: Re: Core Animation layer-backed NSViews and mouse handling
  • Next by thread: Saving NSFonts and changedFont: trouble
  • Index(es):
    • Date
    • Thread