objective c - NSEvent addGlobalMonitorForEventsMatchingMask:NSLeftMouseDownMask call two times -


i'm adding event nsleftmousedownmask function:

mouselefclick = [nsevent addglobalmonitorforeventsmatchingmask:nsleftmousedownmask handler:^(nsevent *leftmousedown) {       nslog(@"!!"); 

}];

when press first time it's call right when press second time function it's call 2 times , other clicks it's going right except second one. please me! thx!


Comments

Popular posts from this blog

OpenCV OpenCL: Convert Mat to Bitmap in JNI Layer for Android -

python - How to remove the Xframe Options header in django? -

android - org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope -