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
Post a Comment