Guest User

Untitled

a guest
Aug 14th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. NSButton is called twice on sending print: to first responder
  2. NSMenu* menu = [sender menuForEvent:[NSApp currentEvent]];
  3. NSEvent* event = [NSApp currentEvent];
  4. [NSMenu popUpContextMenu:menu withEvent:event forView:self.view];
Add Comment
Please, Sign In to add comment