if ( wxpeer )
{
wxpeer->HandleActivated(0, false);
+ // as for wx the deactivation also means losing focus we
+ // must trigger this manually
+ [window makeFirstResponder:nil];
+
+ // TODO Remove if no problems arise with Popup Windows
+#if 0
// Needed for popup window since the firstResponder
// (focus in wx) doesn't change when this
// TLW becomes inactive.
wxFocusEvent event( wxEVT_KILL_FOCUS, wxpeer->GetId());
event.SetEventObject(wxpeer);
wxpeer->HandleWindowEvent(event);
+#endif
}
}
}
}
return editor;
}
+ else if ([anObject isKindOfClass:[wxNSComboBox class]])
+ {
+ wxNSComboBox * cb = (wxNSComboBox*) anObject;
+ wxNSTextFieldEditor* editor = [cb fieldEditor];
+ if ( editor == nil )
+ {
+ editor = [[wxNSTextFieldEditor alloc] init];
+ [editor setFieldEditor:YES];
+ [cb setFieldEditor:editor];
+ [editor release];
+ }
+ return editor;
+ }
return nil;
}