Implement wxWindow::SetCursor to invalidate Cocoa's cursor rects.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47585 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
David Elliott
2007-07-20 05:40:54 +00:00
parent e2948f175e
commit a8780ad5bb
2 changed files with 11 additions and 0 deletions

View File

@@ -669,6 +669,15 @@ bool wxWindowCocoa::Cocoa_resetCursorRects()
return true;
}
bool wxWindowCocoa::SetCursor(const wxCursor &cursor)
{
if(!wxWindowBase::SetCursor(cursor))
return false;
// Invalidate the cursor rects so the cursor will change
[[GetNSView() window] invalidateCursorRectsForView:GetNSView()];
return true;
}
bool wxWindowCocoa::Cocoa_viewDidMoveToWindow()
{
wxLogTrace(wxTRACE_COCOA,wxT("wxWindow=%p::viewDidMoveToWindow"),this);