0

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?

Anoop Vaidya
  • 46,283
  • 15
  • 111
  • 140
gohamgx
  • 273
  • 2
  • 16

1 Answers1

0

It seems that this is the default behavior for osx.So the only solution is that get the right mouse event and do nothing when the sheet display.

gohamgx
  • 273
  • 2
  • 16