From 3678169caab0f713415414dce013a638305f3cce Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Tue, 4 Jun 2013 06:27:02 +0000 Subject: [PATCH] adding comment git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74102 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/osx/window_osx.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/osx/window_osx.cpp b/src/osx/window_osx.cpp index 4a137ff4b2..33e376ad8d 100644 --- a/src/osx/window_osx.cpp +++ b/src/osx/window_osx.cpp @@ -2774,6 +2774,10 @@ bool wxWindowMac::OSXHandleKeyEvent( wxKeyEvent& event ) // wxWidgetImpl // +// we are maintaining a n:1 map from native controls (ControlRef / NSView*) to their wxWidgetImpl +// n:1 because we might have an embedded view eg within a scrollview, both being part of the same impl +// the impl is calling Associate with its newly created native control(s), e.g. in InstallHandler + WX_DECLARE_HASH_MAP(WXWidget, wxWidgetImpl*, wxPointerHash, wxPointerEqual, MacControlMap); static MacControlMap wxWinMacControlList; -- 2.45.2