+bool wxClientDC::CocoaLockFocus()
+{
+ wxLogTrace(wxTRACE_COCOA,wxT("Locking focus on wxClientDC=%p, NSView=%p"),this, m_window->GetNSView());
+ NSAffineTransform *newTransform = m_window->CocoaGetWxToBoundsTransform();
+ [newTransform retain];
+ [m_cocoaWxToBoundsTransform release];
+ m_cocoaWxToBoundsTransform = newTransform;
+ return CocoaLockFocusOnNSView(m_window->GetNSView());
+}
+
+bool wxClientDC::CocoaUnlockFocus()
+{
+ wxLogTrace(wxTRACE_COCOA,wxT("Unlocking focus on wxClientDC=%p, NSView=%p"),this, m_window->GetNSView());
+ return CocoaUnlockFocusOnNSView();
+}
+