+- (BOOL)acceptsFirstMouse:(NSEvent *)theEvent
+{
+ bool acceptsFirstMouse = false;
+ wxCocoaNSView *win = wxCocoaNSView::GetFromCocoa(self);
+ if(!win || !win->Cocoa_acceptsFirstMouse(acceptsFirstMouse, theEvent))
+ acceptsFirstMouse = [super acceptsFirstMouse:theEvent];
+ return acceptsFirstMouse;
+}
+