]> git.saurik.com Git - wxWidgets.git/commitdiff
adding comment
authorStefan Csomor <csomor@advancedconcepts.ch>
Tue, 4 Jun 2013 06:27:02 +0000 (06:27 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Tue, 4 Jun 2013 06:27:02 +0000 (06:27 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74102 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/osx/window_osx.cpp

index 4a137ff4b2f8e53ec8ffb5101db5afd65bab2e39..33e376ad8d75c18f2adf45e6107d7401df9569ab 100644 (file)
@@ -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;