-#if wxMAC_USE_MLTE
-#if wxMAC_USE_MLTE_HIVIEW
- m_peer = new wxMacMLTEHIViewControl( this , str , pos , size , style ) ;
-#else
- m_peer = new wxMacMLTEClassicControl( this , str , pos , size , style ) ;
-#endif
-#else // wxMAC_USE_MLTE
- m_peer = new wxMacUnicodeTextControl( this , str , pos , size , style ) ;
+
+#if TARGET_API_MAC_OSX
+#if MAC_OS_X_VERSION_MAX_ALLOWED > MAC_OS_X_VERSION_10_2
+ if ( UMAGetSystemVersion() >= 0x1030 )
+ {
+ m_peer = new wxMacMLTEHIViewControl( this , str , pos , size , style ) ;
+ }
+#endif
+#if !wxMAC_AWAYS_USE_MLTE
+ if ( !m_peer )
+ {
+ m_peer = new wxMacUnicodeTextControl( this , str , pos , size , style ) ;
+ }
+#endif