• 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
cocoa widgets and core animation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

cocoa widgets and core animation


  • Subject: cocoa widgets and core animation
  • From: Daniel Oberhoff <email@hidden>
  • Date: Wed, 6 Jan 2010 11:52:01 +0100

Hi,

I am playing around with coreanimation recently and to make experimenting easier wanted to embed some controls into my layer hierarchy. I just figured I can simply instanitate a custom view in interface builder without a parent window, put my controls in that, and simply put that view's layer into my hierarchy and it will show up ( cool :) ). but now I need to make it work, i.e. respond to events. what I accomplished so far is to filter out mouse events that hit one of the controls using CALayer's hitTest method. I tried then simply sending the event to the view, but that didnt work. specifically i injected the hit tests into mouseUp/Down and call the corresponding methods of the control-view with the same event. I even checked the location translation ( i.e. [ controlView convertPoint:[event locationInWindow] fromView:nil ] ) and the locations that produces seem to realy correspond to the location of the control I hit relative to the controlView. is there anything I am doing wrong? or is the some better way to embedd controls into a CA-hierarchy? Should I ask on the Quartz-list instead?

Thanks for any response

Daniel_______________________________________________

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

  • Prev by Date: Re: NSDate without time portion
  • Next by Date: Re: iPhone: NSXMLParser problems
  • Previous by thread: Re: NSRecursiveLock problems
  • Next by thread: Printing doc file using cocoa
  • Index(es):
    • Date
    • Thread