+ wxNSTextFieldControl* timpl = dynamic_cast<wxNSTextFieldControl*>(impl);
+ if ( fieldEditor )
+ {
+ NSRange range = [fieldEditor selectedRange];
+ timpl->SetInternalSelection(range.location, range.location + range.length);
+ }
+
+ NSResponder * responder = wxNonOwnedWindowCocoaImpl::GetNextFirstResponder();
+ NSView* otherView = [responder isKindOfClass:[NSView class]] ? (NSView*)responder : nil;
+
+ wxWidgetImpl* otherWindow = impl->FindFromWXWidget(otherView);
+ impl->DoNotifyFocusEvent( false, otherWindow );