I found that the NSView
's rightMouseUp
could still be active when a sheet display.I used this code.
[NSApp beginSheet:editPanel
modalForWindow:window
modalDelegate:self
didEndSelector:@selector(didEndSheet:returnCode:contextInfo:)
contextInfo:nil];
I want to forbid rightMouseUp
.How to do that?