I have a CCLayer screen with buttons on it (CCMenu with CCMenuItems). One button creates a new CCLayer, adds it as child to the current CCLayer and shows it. The new CCLayer also has buttons on it. However, while the second layer is active i can still use the buttons on the layer beneath it even though i can't see the buttons.
I think there must be some simple way to disable input for a certain layer but i haven't found it. isTouchEnabled hasn't had the desired effect, i tried to enable/disable it according to which layer should be active. I know i can just set the buttons.visible = NO but i don't want to hide the buttons if it can be avoided. I also tried receiving touch events and simply saying i've handled them to no effect.
So what do i need to do to make the input for stacking layers to only go to the top layer?