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

Android : Making Listview full screen -

javascript - Parse JSON from the body of the POST -

javascript - Chrome Extension: Interacting with iframe embedded within popup -