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 protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to