projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Applied patch [ 1163322 ] Patch to prevent MDI app from opening the same file twice
[wxWidgets.git]
/
src
/
cocoa
/
NSView.mm
diff --git
a/src/cocoa/NSView.mm
b/src/cocoa/NSView.mm
index e5d83af0f2507b71d403e3004f119aaa3f32b062..364fa030594906b1508ac51100ad67b02f055c17 100644
(file)
--- a/
src/cocoa/NSView.mm
+++ b/
src/cocoa/NSView.mm
@@
-6,7
+6,7
@@
// Created: 2003/02/15
// RCS-ID: $Id:
// Copyright: (c) 2003 David Elliott
// Created: 2003/02/15
// RCS-ID: $Id:
// Copyright: (c) 2003 David Elliott
-// Licence: wxWi
ndows licens
e
+// Licence: wxWi
dgets licenc
e
/////////////////////////////////////////////////////////////////////////////
// ============================================================================
/////////////////////////////////////////////////////////////////////////////
// ============================================================================
@@
-73,6
+73,7
@@
void wxCocoaNSView::DisassociateNSView(WX_NSView cocoaNSView)
- (void)otherMouseDown:(NSEvent *)theEvent;
- (void)otherMouseDragged:(NSEvent *)theEvent;
- (void)otherMouseUp:(NSEvent *)theEvent;
- (void)otherMouseDown:(NSEvent *)theEvent;
- (void)otherMouseDragged:(NSEvent *)theEvent;
- (void)otherMouseUp:(NSEvent *)theEvent;
+- (void)resetCursorRects;
@end // wxPoserNSView
WX_IMPLEMENT_POSER(wxPoserNSView);
@end // wxPoserNSView
WX_IMPLEMENT_POSER(wxPoserNSView);
@@
-169,6
+170,13
@@
WX_IMPLEMENT_POSER(wxPoserNSView);
[super otherMouseUp:theEvent];
}
[super otherMouseUp:theEvent];
}
+- (void)resetCursorRects
+{
+ wxCocoaNSView *win = wxCocoaNSView::GetFromCocoa(self);
+ if( !win || !win->Cocoa_resetCursorRects() )
+ [super resetCursorRects];
+}
+
@end // implementation wxPoserNSView
@interface wxNSViewNotificationObserver : NSObject
@end // implementation wxPoserNSView
@interface wxNSViewNotificationObserver : NSObject