On Wed, Oct 8, 2008 at 7:05 AM, Richard Jones <[EMAIL PROTECTED]> wrote:
>
> Because of base class ordering in the Scene and Layer classes,
> EventHandlerMixin isn't actually being used at the moment. Is that
> intentional? It's actually broken if you try to make it be used. This
> basically means that (AFAICT) event handers aren't managed correctly
> during Scene and Layer add() and remove() operations.
>

you are right, the mixin is never used. but the handlers are handled
correctly, as the ones who actualy push the handlers are the layers in
"on_enter", and when you add a node or you enter the stage with a
scene, on_enter gets called.

so, we could remove that class. or move the "enable handlers on
'on_enter'" to that class so all nodes can be event handlers if one
wants to and fix the order.

comments?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"cocos2d discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cocos-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to