I'm trying to use setAcceptsTouchEvents:YES
to recognise custom touch events on the trackpad. Simply touching the trackpad nothing happens on the touchesBeganWithEvent
. But if I do a gesture on the trackpad like pinching or scrolling the touchesBeganWithEvent
starts to work properly. After one of that gestures, even if I simply touch the trackpad the touchesBeganWithEvent
works. But I need to use touchesBeganWithEvent
with simple touches without need to do a gesture before. The way it is seems like I have to do a gesture to initialize the setAcceptsTouchEvents:YES
. What am I doing wrong?
P.S.: The setAcceptsTouchEvents:YES
is in initWithFrame
, and I can see that it is executed when the application starts.